aboutsummaryrefslogtreecommitdiff
path: root/fs/9p/acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/9p/acl.c')
-rw-r--r--fs/9p/acl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/9p/acl.c b/fs/9p/acl.c
index 6b951d1140d..9686c1f1765 100644
--- a/fs/9p/acl.c
+++ b/fs/9p/acl.c
@@ -321,10 +321,8 @@ static int v9fs_xattr_set_acl(struct dentry *dentry, const char *name,
name = POSIX_ACL_XATTR_ACCESS;
if (acl) {
struct iattr iattr;
- struct posix_acl *old_acl = acl;
- retval = posix_acl_update_mode(inode,
- &iattr.ia_mode, &acl);
+ retval = posix_acl_update_mode(inode, &iattr.ia_mode, &acl);
if (retval)
goto err_out;
if (!acl) {
@@ -333,7 +331,6 @@ static int v9fs_xattr_set_acl(struct dentry *dentry, const char *name,
* by the mode bits. So don't
* update ACL.
*/
- posix_acl_release(old_acl);
value = NULL;
size = 0;
}