diff options
author | Richard Weinberger <richard@nod.at> | 2018-07-09 00:33:25 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-08-15 01:06:15 +0300 |
commit | 11a6fc3dc743e22fb50f2196ec55bee5140d3c52 (patch) | |
tree | bae4a2dba40ef3246488a814675ae6a04feb72c0 /fs/ubifs/file.c | |
parent | 312c39bd6d515122b4b0022780e46c63ea9b8bec (diff) | |
download | linux-11a6fc3dc743e22fb50f2196ec55bee5140d3c52.tar.xz |
ubifs: xattr: Don't operate on deleted inodes
xattr operations can race with unlink and the following assert triggers:
UBIFS assert failed in ubifs_jnl_change_xattr at 1606 (pid 6256)
Fix this by checking i_nlink before working on the host inode.
Cc: <stable@vger.kernel.org>
Fixes: 1e51764a3c2a ("UBIFS: add new flash file system")
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/file.c')
0 files changed, 0 insertions, 0 deletions