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

From: David Miller
Date: Fri Sep 27 2019 - 14:12:55 EST


From: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>
Date: Wed, 25 Sep 2019 13:24:02 -0500

> 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>

Applied.