Commit 9aaab058 authored by Roel Kluin's avatar Roel Kluin Committed by Theodore Ts'o
Browse files

ext4: add missing error checking to ext4_expand_extra_isize_ea()



Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
parent 12062ddd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)