diff options
author | Joel Becker <joel.becker@oracle.com> | 2008-10-20 21:24:03 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-11-10 12:51:45 -0500 |
commit | b37c4d84e9d16fd5b6f31197f02ea0a112fc9e99 (patch) | |
tree | c9a709970deb2dfdb2b4d9340f682e966da19b83 | |
parent | f6087fb799e097e7c9d912daa75701de9d62dc53 (diff) |
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>
-rw-r--r-- | fs/ocfs2/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 151ba6257fb..41a6ca004ae 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c | |||
@@ -1239,7 +1239,7 @@ static int ocfs2_xattr_set_entry(struct inode *inode, | |||
1239 | 1239 | ||
1240 | free = min_offs - ((void *)last - xs->base) - sizeof(__u32); | 1240 | free = min_offs - ((void *)last - xs->base) - sizeof(__u32); |
1241 | if (free < 0) | 1241 | if (free < 0) |
1242 | return -EFAULT; | 1242 | return -EIO; |
1243 | 1243 | ||
1244 | if (!xs->not_found) { | 1244 | if (!xs->not_found) { |
1245 | size_t size = 0; | 1245 | size_t size = 0; |