Re: [PATCH] selftests/mm: khugepaged: remove str_dup() usage
From: Andrew Morton
Date: Thu Aug 27 2026 - 23:44:09 EST
On Tue, 25 Aug 2026 13:20:59 +0200 "David Hildenbrand (Arm)" <david@xxxxxxxxxx> wrote:
> We don't check str_dup() return value and never free it. While both
> things are irrelevant in practice, let's just clean it up by working on
> argv[0] directly and avoiding the str_dup().
>
> Nobody after us needs these parts of the argv[0] string anyway.
>
> This patch is inspired by previous work from Anshuman Tewari [1].
This might be the most-reviewed patch I've every seen.
> 1 file changed, 1 insertion(+), 1 deletion(-)
Oh.
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>