]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
fs/ntfs3: Fix endian conversion in ni_fname_name
authorThomas Kühnel <thomas.kuehnel@avm.de>
Tue, 7 Dec 2021 10:24:53 +0000 (11:24 +0100)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 14 Nov 2022 16:50:40 +0000 (19:50 +0300)
commit90c1cd540cc81023c5826891f3793ea159c4562e
treef27f479ac2ff3aabfe50a7a351bbeb045f984ed1
parentecfbd57cf9c5ca225184ae266ce44ae473792132
fs/ntfs3: Fix endian conversion in ni_fname_name

ni_fname_name called ntfs_cmp_names_cpu which assumes that the first
string is in CPU byte order and the second one in little endian.
In this case both strings are little endian so ntfs_cmp_names is the
correct function to call.

Signed-off-by: Thomas Kühnel <thomas.kuehnel@avm.de>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/frecord.c