Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b37c4d84 authored by Joel Becker's avatar Joel Becker Committed by Mark Fasheh
Browse files

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



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

Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent f6087fb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;