xattr handlers: plug a lock leak in simple_xattr_list
authorMateusz Guzik <mguzik@redhat.com>
Thu, 4 Feb 2016 01:56:30 +0000 (02:56 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 20 Feb 2016 05:15:51 +0000 (00:15 -0500)
commit0e9a7da51b028aee7a72c95096c99fe5ea2a01f0
tree9ea3ec020202ebc2c38f581f410f201abad7db28
parent2feb55f89096b22e2de066e411a3263647211987
xattr handlers: plug a lock leak in simple_xattr_list

The code could leak xattrs->lock on error.

Problem introduced with 786534b92f3ce68f4 "tmpfs: listxattr should
include POSIX ACL xattrs".

Signed-off-by: Mateusz Guzik <mguzik@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/xattr.c