mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-15 14:32:06 +00:00
If some processes in nixge_probe() fail, free_netdev(dev) needs to be called to aviod a memory leak. Fixes:87ab207981("net: nixge: Separate ctrl and dma resources") Fixes:abcd3d6fc6("net: nixge: Fix error path for obtaining mac address") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Lu Wei <luwei32@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>