Skip to content

Commit

Permalink
Simplify check in zpl_permission()
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Walker <awalker@ixsystems.com>
  • Loading branch information
anodos325 committed May 17, 2021
1 parent 01cde40 commit 6d951ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/os/linux/zfs/zpl_xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ zpl_permission(struct inode *ip, int mask)
cr = CRED();
crhold(cr);
ret = -zfs_access(ITOZ(ip), to_check, V_ACE_MASK, cr);
if (!((ret == -EPERM) || (ret == -EACCES))) {
if (ret != -EPERM && ret != -ACCES) {
crfree(cr);
return (ret);
}
Expand Down

0 comments on commit 6d951ef

Please sign in to comment.