mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-13 20:33:15 +00:00
[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: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
326a625748
commit
90947ef26f
@ -228,6 +228,7 @@ struct posix_acl *reiserfs_get_acl(struct inode *inode, int type)
|
|||||||
acl = ERR_PTR(retval);
|
acl = ERR_PTR(retval);
|
||||||
} else {
|
} else {
|
||||||
acl = posix_acl_from_disk(value, retval);
|
acl = posix_acl_from_disk(value, retval);
|
||||||
|
if (!IS_ERR(acl))
|
||||||
*p_acl = posix_acl_dup(acl);
|
*p_acl = posix_acl_dup(acl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user