From: Zheng Liu <wenqing.lz@xxxxxxxxxx> Fix a typo in ext2fs_set_entry_ext_attr(). Signed-off-by: Zheng Liu <wenqing.lz@xxxxxxxxxx> --- lib/ext2fs/ext_attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ext2fs/ext_attr.c b/lib/ext2fs/ext_attr.c index 5a8d1ca..9c9ab1c 100644 --- a/lib/ext2fs/ext_attr.c +++ b/lib/ext2fs/ext_attr.c @@ -280,7 +280,7 @@ errcode_t ext2fs_set_entry_ext_attr(struct ext2_ext_attr_info *i, } free = min_offs - ((void *)last - s->base) - sizeof(__u32); if (!s->not_found) { - if (!s->here->e_value_block & s->here->e_value_size) { + if (!s->here->e_value_block && s->here->e_value_size) { size_t size = ext2fs_le32_to_cpu(s->here->e_value_size); free += EXT2_EXT_ATTR_SIZE(size); } -- 1.7.12.rc2.18.g61b472e -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html