RE: [Intel-wired-lan] [PATCH] i40e: prevent memory leak in i40e_setup_macvlans
From: Bowers, AndrewX
Date: Fri Sep 27 2019 - 15:01:19 EST
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces@xxxxxxxxxx] On
> Behalf Of Navid Emamdoost
> Sent: Wednesday, September 25, 2019 8:49 AM
> Cc: netdev@xxxxxxxxxxxxxxx; kjlu@xxxxxxx; linux-kernel@xxxxxxxxxxxxxxx;
> emamd001@xxxxxxx; intel-wired-lan@xxxxxxxxxxxxxxxx;
> smccaman@xxxxxxx; David S. Miller <davem@xxxxxxxxxxxxx>; Navid
> Emamdoost <navid.emamdoost@xxxxxxxxx>
> Subject: [Intel-wired-lan] [PATCH] i40e: prevent memory leak in
> i40e_setup_macvlans
>
> In i40e_setup_macvlans if i40e_setup_channel fails the allocated memory for
> ch should be released.
>
> Signed-off-by: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>
> ---
> drivers/net/ethernet/intel/i40e/i40e_main.c | 1 +
> 1 file changed, 1 insertion(+)
Tested-by: Andrew Bowers <andrewx.bowers@xxxxxxxxx>