Re: [PATCH net v3] fsl/fman: Free init resources on KeyGen failure in fman_init()

From: Paolo Abeni

Date: Tue Jun 30 2026 - 12:06:54 EST


On 6/25/26 2:48 AM, Haoxiang Li wrote:
> fman_muram_alloc() allocates initialization resources before
> initializing the KeyGen block. If keygen_init() fails, the
> function returns -EINVAL directly and leaves those resources
> allocated. Free the initialization resources before returning
> from the KeyGen failure path.
>
> Fixes: 7472f4f281d0 ("fsl/fman: enable FMan Keygen")
> Cc: stable@xxxxxxxxxx
> Signed-off-by: Haoxiang Li <haoxiang_li2024@xxxxxxx>
> Reviewed-by: Pavan Chebbi <pavan.chebbi@xxxxxxxxxxxx>
> Reviewed-by: Breno Leitao <leitao@xxxxxxxxxx>

The PW bot is on holiday, no automated notifications for a while.

Applied, thanks!

/P