]> git.baikalelectronics.ru Git - kernel.git/commit
net: cpmac: fix error handling of cpmac_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 19 Jul 2016 12:37:53 +0000 (12:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2016 21:46:01 +0000 (14:46 -0700)
commitf0f5c7c88bf83c38580f49eaa5e3076929b9a434
tree4275ce363952e2c26bdbf245e9de396cc97252ed
parent1339d7acb7a09feb362bf4c9a5d7f8298f18b345
net: cpmac: fix error handling of cpmac_probe()

Add the missing free_netdev() before return from function
cpmac_probe() in the error handling case.
This patch revert commit 68a958664fdf ("net: cpmac: fix in
releasing resources"), which changed to only free_netdev
while register_netdev failed.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpmac.c