Skip to content

Commit d407359

Browse files
Dan Carpenteraalexandrovich
authored andcommitted
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: 460bbf2 ("fs/ntfs3: Do not change mode if ntfs_set_ea failed") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Konstantin Komarov <[email protected]>
1 parent 9696435 commit d407359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ntfs3/xattr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ static noinline int ntfs_set_acl_ex(struct user_namespace *mnt_userns,
568568
err = posix_acl_update_mode(mnt_userns, inode, &mode,
569569
&acl);
570570
if (err)
571-
goto out;
571+
return err;
572572
}
573573
name = XATTR_NAME_POSIX_ACL_ACCESS;
574574
name_len = sizeof(XATTR_NAME_POSIX_ACL_ACCESS) - 1;

0 commit comments

Comments
 (0)