Skip to content

Commit

Permalink
ext4: add missing error checking to ext4_expand_extra_isize_ea()
Browse files Browse the repository at this point in the history
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
  • Loading branch information
Roel Kluin authored and Theodore Ts'o committed Feb 15, 2010
1 parent 12062dd commit 9aaab05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ext4/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9aaab05

Please sign in to comment.