Re: [PATCH] ntfs: mft: use kmemdup() instead of kmalloc() and memcpy()

From: Namjae Jeon

Date: Mon Jul 06 2026 - 07:34:40 EST


On Sat, Jul 4, 2026 at 8:11 PM <mdshahid03@xxxxxxxxx> wrote:
>
> From: Mohammad Shahid <mdshahid03@xxxxxxxxx>
>
> 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@xxxxxxxxx>
Applied it to #ntfs-next.
Thanks!