aboutsummaryrefslogtreecommitdiffstats
path: root/main/btrfs-progs/rm-ext2_ext_attr_entry_check.patch
blob: 403a51ff8ce7a992de897afdabf2124bcf52187a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/source-ext2.c b/source-ext2.c
index b1492c7..070126e 100644
--- a/convert/source-ext2.c
+++ b/convert/source-ext2.c
@@ -422,8 +422,7 @@ static int ext2_xattr_check_entry(struct ext2_ext_attr_entry *entry,
 {
 	size_t value_size = entry->e_value_size;
 
-	if (entry->e_value_block != 0 || value_size > size ||
-	    entry->e_value_offs + value_size > size)
+	if (value_size > size || entry->e_value_offs + value_size > size)
 		return -EIO;
 	return 0;
 }