fs/ntfs3: uninitialized variable in ntfs_set_acl_ex()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 8 Aug 2022 08:34:41 +0000 (11:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:40:21 +0000 (11:40 +0200)
commit81dcb3b804758ba47103a96d0166b9fcfc4612e1
tree5760006259634e5751ff0c86a5eeaa004900073b
parent8a38a73cb406eedadee53ebc2787aa62edc04abf
fs/ntfs3: uninitialized variable in ntfs_set_acl_ex()

commit d4073595d0c61463ec3a87411b19e2a90f76d3f8 upstream.

The goto out calls kfree(value) on an uninitialized pointer.  Just
return directly as the other error paths do.

Fixes: 460bbf2990b3 ("fs/ntfs3: Do not change mode if ntfs_set_ea failed")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ntfs3/xattr.c