]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.fixes/ocfs2-Don-t-return-EFAULT-from-a-corrupt-xattr-ent.patch
Reenabled linux-xen and xen-image build
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / ocfs2-Don-t-return-EFAULT-from-a-corrupt-xattr-ent.patch
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.
4
5 If the xattr disk structures are corrupt, return -EIO, not -EFAULT.
6
7 Signed-off-by: Joel Becker <joel.becker@oracle.com>
8 Signed-off-by: Mark Fasheh <mfasheh@suse.com>
9 ---
10 fs/ocfs2/xattr.c | 2 +-
11 1 files changed, 1 insertions(+), 1 deletions(-)
12
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
18
19 free = min_offs - ((void *)last - xs->base) - sizeof(__u32);
20 if (free < 0)
21 - return -EFAULT;
22 + return -EIO;
23
24 if (!xs->not_found) {
25 size_t size = 0;