> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Michal Swiatkowski
> Sent: Friday, April 4, 2025 3:54 AM
> To: [email protected]
> Cc: [email protected]; Michal Swiatkowski
> <[email protected]>; Linga, Pavan Kumar
> <[email protected]>; Loktionov, Aleksandr
> <[email protected]>
> Subject: [Intel-wired-lan] [PATCH iwl-net v1] idpf: fix potential memory leak
> on kcalloc() failure
>
> In case of failing on rss_data->rss_key allocation the function is freeing
> vport
> without freeing earlier allocated q_vector_idxs. Fix it.
>
> Move from freeing in error branch to goto scheme.
>
> Fixes: 95af467d9a4e ("idpf: configure resources for RX queues")
> Reviewed-by: Pavan Kumar Linga <[email protected]>
> Reviewed-by: Aleksandr Loktionov <[email protected]>
> Suggested-by: Pavan Kumar Linga <[email protected]>
> Signed-off-by: Michal Swiatkowski <[email protected]>
> ---
> 2.42.0
Tested-by: Samuel Salin <[email protected]>