Skip to content

Commit 2a534e1

Browse files
committed
ext4: bail out of ext4_xattr_ibody_get() fails for any reason
In ext4_update_inline_data(), if ext4_xattr_ibody_get() fails for any reason, it's best if we just fail as opposed to stumbling on, especially if the failure is EFSCORRUPTED. Cc: stable@kernel.org Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 2220eaf commit 2a534e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/inline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ static int ext4_update_inline_data(handle_t *handle, struct inode *inode,
360360

361361
error = ext4_xattr_ibody_get(inode, i.name_index, i.name,
362362
value, len);
363-
if (error == -ENODATA)
363+
if (error < 0)
364364
goto out;
365365

366366
BUFFER_TRACE(is.iloc.bh, "get_write_access");

0 commit comments

Comments
 (0)