--- zzzz-none-000/linux-4.4.60/fs/xfs/xfs_acl.c 2017-04-08 07:53:53.000000000 +0000 +++ jet-2400-727/linux-4.4.60/fs/xfs/xfs_acl.c 2021-03-17 14:36:41.000000000 +0000 @@ -289,8 +289,10 @@ if (type == ACL_TYPE_ACCESS) { umode_t mode; - + struct posix_acl *old_acl = acl; error = posix_acl_update_mode(inode, &mode, &acl); + if (!acl) + posix_acl_release(old_acl); if (error) return error; error = xfs_set_mode(inode, mode);