提交 b37c4d84 编写于 作者: J Joel Becker 提交者: Mark Fasheh

ocfs2: Don't return -EFAULT from a corrupt xattr entry.

If the xattr disk structures are corrupt, return -EIO, not -EFAULT.
Signed-off-by: NJoel Becker <joel.becker@oracle.com>
Signed-off-by: NMark Fasheh <mfasheh@suse.com>
上级 f6087fb7
...@@ -1239,7 +1239,7 @@ static int ocfs2_xattr_set_entry(struct inode *inode, ...@@ -1239,7 +1239,7 @@ static int ocfs2_xattr_set_entry(struct inode *inode,
free = min_offs - ((void *)last - xs->base) - sizeof(__u32); free = min_offs - ((void *)last - xs->base) - sizeof(__u32);
if (free < 0) if (free < 0)
return -EFAULT; return -EIO;
if (!xs->not_found) { if (!xs->not_found) {
size_t size = 0; size_t size = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册