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

If the xattr disk structures are corrupt, return -EIO, not -EFAULT.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
This commit is contained in:
Joel Becker 2008-10-20 18:24:03 -07:00 committed by Mark Fasheh
parent f6087fb799
commit b37c4d84e9
1 changed files with 1 additions and 1 deletions

View File

@ -1239,7 +1239,7 @@ static int ocfs2_xattr_set_entry(struct inode *inode,
free = min_offs - ((void *)last - xs->base) - sizeof(__u32);
if (free < 0)
return -EFAULT;
return -EIO;
if (!xs->not_found) {
size_t size = 0;