Re: [PATCH] net: nixge: fix potential memory leak in nixge_probe()

From: David Miller
Date: Thu Jul 30 2020 - 19:56:01 EST


From: Lu Wei <luwei32@xxxxxxxxxx>
Date: Wed, 29 Jul 2020 11:50:05 +0800

> If some processes in nixge_probe() fail, free_netdev(dev)
> needs to be called to aviod a memory leak.
>
> Fixes: 87ab207981ec ("net: nixge: Separate ctrl and dma resources")
> Fixes: abcd3d6fc640 ("net: nixge: Fix error path for obtaining mac address")
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Lu Wei <luwei32@xxxxxxxxxx>

Applied, thank you.