Skip to content
Commit 366228ed authored by Lu Wei's avatar Lu Wei Committed by David S. Miller
Browse files

net: nixge: fix potential memory leak in nixge_probe()

If some processes in nixge_probe() fail, free_netdev(dev)
needs to be called to aviod a memory leak.

Fixes: 87ab2079 ("net: nixge: Separate ctrl and dma resources")
Fixes: abcd3d6f

 ("net: nixge: Fix error path for obtaining mac address")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarLu Wei <luwei32@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 82274d07
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment