posix_acl: fix reference leaks in posix_acl_create
authorOmar Sandoval <osandov@osandov.com>
Mon, 9 Feb 2015 05:45:25 +0000 (21:45 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Feb 2015 09:56:45 +0000 (04:56 -0500)
commitfed0b588be2f55822013808a2968c228258d921b
tree9d7a658a615c08c104a1566620379c21f8d1a7d3
parent76bf3f6b1d6ac4c770bb121b0461c460aa068e64
posix_acl: fix reference leaks in posix_acl_create

get_acl gets a reference which we must release in the error cases.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/posix_acl.c