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

Commit 90947ef2 authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Linus Torvalds
Browse files

[PATCH] reiserfs: fix potential (unlikely) oops in reiserfs_get_acl



This fixes a potential oops if there is an error reported by
posix_acl_from_disk().  This is mostly theoretical due to the use of
magics and checksums in xattrs, but is still possible.

Signed-off-by: default avatarJeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 326a6257
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -228,6 +228,7 @@ struct posix_acl *reiserfs_get_acl(struct inode *inode, int type)
		acl = ERR_PTR(retval);
	} else {
		acl = posix_acl_from_disk(value, retval);
		if (!IS_ERR(acl))
			*p_acl = posix_acl_dup(acl);
	}