Andreas Gruenbacher 7648f939cb 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>
2020-04-20 09:58:59 -04:00
..
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2020-04-07 13:51:39 -07:00
2019-02-20 15:14:21 -05:00
2020-02-03 10:43:06 -05:00
2015-04-23 15:16:14 -04:00
2020-04-07 13:51:39 -07:00
2020-02-04 11:01:54 -05:00
2019-10-09 12:05:49 -04:00
2020-04-11 11:42:35 -04:00
2020-04-07 13:51:39 -07:00