Skip to content
Commit 1ded3ed1 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 cffcb4a3
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