From: Roel Kluin Date: Mon, 15 Feb 2010 19:26:16 +0000 (-0500) Subject: ext4: add missing error checking to ext4_expand_extra_isize_ea() X-Git-Tag: v2.6.34-rc1~199^2~26 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=9aaab0589baa61d637a52badddbff2d74f35a955;p=linux.git ext4: add missing error checking to ext4_expand_extra_isize_ea() Signed-off-by: Roel Kluin --- diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 627c98abbed9..efc16a4b7ceb 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c @@ -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)