diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-02-15 20:26:16 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-02-15 20:26:16 +0100 |
commit | 9aaab0589baa61d637a52badddbff2d74f35a955 (patch) | |
tree | 64b52a1a7ced85f468545d7ef5f4dd2762ecd2ff /fs/ext4 | |
parent | ext4: move __func__ into a macro for ext4_warning, ext4_error (diff) | |
download | linux-9aaab0589baa61d637a52badddbff2d74f35a955.tar.xz linux-9aaab0589baa61d637a52badddbff2d74f35a955.zip |
ext4: add missing error checking to ext4_expand_extra_isize_ea()
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/xattr.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ 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) |