Re: [PATCH] ntfs: reparse: remove redundant NULL checks before kvfree()

From: Namjae Jeon

Date: Mon Jul 06 2026 - 09:22:33 EST


On Sat, Jul 4, 2026 at 2:33 AM <mdshahid03@xxxxxxxxx> wrote:
>
> From: Mohammad Shahid <mdshahid03@xxxxxxxxx>
>
> kvfree() safely handles NULL pointers, so the explicit NULL checks
> before calling kvfree() are unnecessary.
>
> This issue was reported by ifnullfree.cocci.
>
> Signed-off-by: Mohammad Shahid <mdshahid03@xxxxxxxxx>
Applied it to #ntfs-next.
Thanks!