Re: [PATCH 2/2] padata: Free the padata_works when they're no longer needed

From: Daniel Jordan

Date: Fri Jul 17 2026 - 16:36:18 EST


On Fri, Jul 17, 2026 at 10:18:31AM -0700, Eric Biggers wrote:
> The memory pointed to by 'padata_works' is never freed.
>
> Originally this was necessary because it was used to support the
> serialized job APIs used by pcrypt, which can be used long after boot.
>
> However, now that's been removed, and the remaining code in padata.c is
> used only at boot time. The pointer 'padata_works' is now __initdata.
>
> The result is that this essentially turned into a memory leak. Fix it.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>

Reviewed-by: Daniel Jordan <daniel.m.jordan@xxxxxxxxxx>

Thanks!