Commit 9aaab058 authored by Roel Kluin's avatar Roel Kluin Committed by Theodore Ts'o

ext4: add missing error checking to ext4_expand_extra_isize_ea()

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
parent 12062ddd
......@@ -1300,6 +1300,8 @@ int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize,
/* Remove the chosen entry from the inode */
error = ext4_xattr_ibody_set(handle, inode, &i, is);
if (error)
goto cleanup;
entry = IFIRST(header);
if (entry_size + EXT4_XATTR_SIZE(size) >= new_extra_isize)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment