1 From: Joel Becker <joel.becker@oracle.com>
2 Date: Mon, 20 Oct 2008 18:24:03 -0700
3 Subject: ocfs2: Don't return -EFAULT from a corrupt xattr entry.
5 If the xattr disk structures are corrupt, return -EIO, not -EFAULT.
7 Signed-off-by: Joel Becker <joel.becker@oracle.com>
8 Signed-off-by: Mark Fasheh <mfasheh@suse.com>
10 fs/ocfs2/xattr.c | 2 +-
11 1 files changed, 1 insertions(+), 1 deletions(-)
13 Index: linux-2.6.27-ocfs2/fs/ocfs2/xattr.c
14 ===================================================================
15 --- linux-2.6.27-ocfs2.orig/fs/ocfs2/xattr.c
16 +++ linux-2.6.27-ocfs2/fs/ocfs2/xattr.c
17 @@ -1239,7 +1239,7 @@ static int ocfs2_xattr_set_entry(struct
19 free = min_offs - ((void *)last - xs->base) - sizeof(__u32);