projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6087fb
)
ocfs2: Don't return -EFAULT from a corrupt xattr entry.
author
Joel Becker
<joel.becker@oracle.com>
Tue, 21 Oct 2008 01:24:03 +0000
(18:24 -0700)
committer
Mark Fasheh
<mfasheh@suse.com>
Mon, 10 Nov 2008 17:51:45 +0000
(09:51 -0800)
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>
fs/ocfs2/xattr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/xattr.c
b/fs/ocfs2/xattr.c
index 151ba6257fbb6619fb731db72665358d5841725f..41a6ca004ae37f2f7bc3815cf89b9bf48d8094ae 100644
(file)
--- a/
fs/ocfs2/xattr.c
+++ b/
fs/ocfs2/xattr.c
@@
-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 -E
FAULT
;
+ return -E
IO
;
if (!xs->not_found) {
size_t size = 0;