ntfs: dir: use kmemdup() instead of kmalloc() and memcpy()

Use kmemdup() instead of a separate kmalloc() and memcpy()
pair, simplifying the code while preserving the existing
behavior.

This issue was reported by memdup.cocci.

Signed-off-by: Mohammad Shahid <mdshahid03@gmail.com>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
Mohammad Shahid 2026-07-04 20:16:54 +05:30 • committed by Namjae Jeon
commit 34d22551ad