Message ID | 20180314005657.28471-1-wqu@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Mar 14, 2018 at 08:56:57AM +0800, Qu Wenruo wrote: > In latest e2fsprogs (1.44.0) definition of ext2_ext_attr_entry has > removed member e_value_block, as currently ext* doesn't support it set > anyway. > > So remove such check so that we can pass compile. > > Signed-off-by: Qu Wenruo <wqu@suse.com> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/convert/source-ext2.c b/convert/source-ext2.c index b1492c78693d..070126ec38ec 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; }
In latest e2fsprogs (1.44.0) definition of ext2_ext_attr_entry has removed member e_value_block, as currently ext* doesn't support it set anyway. So remove such check so that we can pass compile. Signed-off-by: Qu Wenruo <wqu@suse.com> --- Fast rolling distribution (Arch) catches this much faster. --- convert/source-ext2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)