dect
/
linux-2.6
Archived
13
0
Fork 0

ext4: add missing error checking to ext4_expand_extra_isize_ea()

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
This commit is contained in:
Roel Kluin 2010-02-15 14:26:16 -05:00 committed by Theodore Ts'o
parent 12062dddda
commit 9aaab0589b
1 changed files with 2 additions and 0 deletions

View 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)