Explorar o código

ext4: add missing error checking to ext4_expand_extra_isize_ea()

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Roel Kluin %!s(int64=15) %!d(string=hai) anos
pai
achega
9aaab0589b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      fs/ext4/xattr.c

+ 2 - 0
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)