[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1352967209-29616-6-git-send-email-wenqing.lz@taobao.com>
Date: Thu, 15 Nov 2012 16:13:27 +0800
From: Zheng Liu <gnehzuil.liu@...il.com>
To: linux-ext4@...r.kernel.org, tytso@....edu
Cc: Zheng Liu <wenqing.lz@...bao.com>
Subject: [PATCH 5/7] libext2fs: fix a typo
From: Zheng Liu <wenqing.lz@...bao.com>
Fix a typo in ext2fs_set_entry_ext_attr().
Signed-off-by: Zheng Liu <wenqing.lz@...bao.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists