diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2020-04-20 15:51:47 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-04-20 09:58:59 -0400 |
commit | 7648f939cb919b9d15c21fff8cd9eba908d595dc (patch) | |
tree | a1196b12fb041ebbd52c97123087e617b33a6a70 /drivers/ras | |
parent | 4d8948c7334a970eab113a4bcf45b1920a5a1625 (diff) | |
download | linux-7648f939cb919b9d15c21fff8cd9eba908d595dc.tar.bz2 |
nfs: Fix potential posix_acl refcnt leak in nfs3_set_acl
nfs3_set_acl keeps track of the acl it allocated locally to determine if an acl
needs to be released at the end. This results in a memory leak when the
function allocates an acl as well as a default acl. Fix by releasing acls
that differ from the acl originally passed into nfs3_set_acl.
Fixes: b7fa0554cf1b ("[PATCH] NFS: Add support for NFSv3 ACLs")
Reported-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'drivers/ras')
0 files changed, 0 insertions, 0 deletions