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)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Wed, 10 Aug 2022 16:12:58 +0000 (19:12 +0300)
commitd4073595d0c61463ec3a87411b19e2a90f76d3f8
treeb2f3be4bbd62083e7ccc0cfe4c8cab4320ad9084
parent96964352e21962f5e51ecad87527ae9b6fec9670
fs/ntfs3: uninitialized variable in ntfs_set_acl_ex()

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>
fs/ntfs3/xattr.c