Re: [PATCH] nfp: flower: prevent memory leak in nfp_flower_spawn_phy_reprs

From: Jakub Kicinski
Date: Wed Sep 25 2019 - 21:23:52 EST


On Wed, 25 Sep 2019 13:24:02 -0500, Navid Emamdoost wrote:
> In nfp_flower_spawn_phy_reprs, in the for loop over eth_tbl if any of
> intermediate allocations or initializations fail memory is leaked.
> requiered releases are added.
>
> Signed-off-by: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>

Fixes: b94524529741 ("nfp: flower: add per repr private data for LAG offload")

Acked-by: Jakub Kicinski <jakub.kicinski@xxxxxxxxxxxxx>