]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: fix acl memory leak of posix_acl_create()
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 18 Jun 2021 04:20:55 +0000 (12:20 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 21 Jun 2021 16:06:16 +0000 (12:06 -0400)
commit8a1b2e0afee4f5b8919541d67ee201f5dfb1cc86
treee076dc317ff39a7a0c78ee62b62489191ddb9f6a
parentb294bf5737aae7350510a1d8b942f7db3eabe234
nfs: fix acl memory leak of posix_acl_create()

When looking into another nfs xfstests report, I found acl and
default_acl in nfs3_proc_create() and nfs3_proc_mknod() error
paths are possibly leaked. Fix them in advance.

Fixes: 174fbfd5be52 ("nfs: use generic posix ACL infrastructure for v3 Posix ACLs")
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: Anna Schumaker <anna.schumaker@netapp.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Joseph Qi <joseph.qi@linux.alibaba.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs3proc.c