--- zzzz-none-000/linux-4.4.271/fs/xfs/xfs_acl.c 2021-06-03 06:22:09.000000000 +0000 +++ dakota-7530ac-750/linux-4.4.271/fs/xfs/xfs_acl.c 2023-01-11 09:25:43.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);