ext4: add missing error checking to ext4_expand_extra_isize_ea()
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 15 Feb 2010 19:26:16 +0000 (14:26 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Feb 2010 19:26:16 +0000 (14:26 -0500)
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
fs/ext4/xattr.c

index 627c98abbed9e04cb32613a5b950b8ccc19cc7d3..efc16a4b7cebdb7a4ebfa5c39f881816051ffa88 100644 (file)
@@ -1300,6 +1300,8 @@ retry:
 
                /* 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)