commit | 9aaab0589baa61d637a52badddbff2d74f35a955 | [log] [tgz] |
---|---|---|
author | Roel Kluin <roel.kluin@gmail.com> | Mon Feb 15 14:26:16 2010 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Feb 15 14:26:16 2010 -0500 |
tree | 64b52a1a7ced85f468545d7ef5f4dd2762ecd2ff | |
parent | 12062dddda450976b129dcb1bacd91acaf4d8030 [diff] [blame] |
ext4: add missing error checking to ext4_expand_extra_isize_ea() Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 627c98a..efc16a4 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c
@@ -1300,6 +1300,8 @@ /* 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)