summaryrefslogtreecommitdiffstats
path: root/kernel/fs/hfsplus/posix_acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/hfsplus/posix_acl.c')
-rw-r--r--kernel/fs/hfsplus/posix_acl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fs/hfsplus/posix_acl.c b/kernel/fs/hfsplus/posix_acl.c
index df0c9af68..71b3087b7 100644
--- a/kernel/fs/hfsplus/posix_acl.c
+++ b/kernel/fs/hfsplus/posix_acl.c
@@ -68,8 +68,8 @@ int hfsplus_set_posix_acl(struct inode *inode, struct posix_acl *acl,
case ACL_TYPE_ACCESS:
xattr_name = POSIX_ACL_XATTR_ACCESS;
if (acl) {
- err = posix_acl_equiv_mode(acl, &inode->i_mode);
- if (err < 0)
+ err = posix_acl_update_mode(inode, &inode->i_mode, &acl);
+ if (err)
return err;
}
err = 0;