| Submitter | Zheng Liu |
|---|---|
| Date | Nov. 15, 2012, 8:13 a.m. |
| Message ID | <1352967209-29616-6-git-send-email-wenqing.lz@taobao.com> |
| Download | mbox | patch |
| Permalink | /patch/199210/ |
| State | New |
| Headers | show |
Comments
Patch
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); }