Re: [PATCH -next] net: cpmac: fix error handling of cpmac_probe()

2016-07-20 Thread David Miller
From: Wei Yongjun Date: Tue, 19 Jul 2016 12:37:53 + > From: Wei Yongjun > > Add the missing free_netdev() before return from function > cpmac_probe() in the error handling case. > This patch revert commit 0465be8f4f1d ("net: cpmac: fix in > releasing resources"), which changed to only free_

[PATCH -next] net: cpmac: fix error handling of cpmac_probe()

2016-07-19 Thread Wei Yongjun
From: Wei Yongjun Add the missing free_netdev() before return from function cpmac_probe() in the error handling case. This patch revert commit 0465be8f4f1d ("net: cpmac: fix in releasing resources"), which changed to only free_netdev while register_netdev failed. Signed-off-by: Wei Yongjun ---