Skip to content
Commit 1158aa74 authored by Lu Wei's avatar Lu Wei Committed by Greg Kroah-Hartman
Browse files

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



[ Upstream commit 366228ed ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9acd96f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment