lantiq_etop: use free_netdev(netdev) instead of kfree()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 20 Mar 2013 21:31:42 +0000 (21:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Mar 2013 15:50:10 +0000 (11:50 -0400)
commitcb0e51d80694fc9964436be1a1a15275e991cb1e
treeed02c9196dc79c09712c9c113d606f921c558e24
parent73214f5d9f33b79918b1f7babddd5c8af28dd23d
lantiq_etop: use free_netdev(netdev) instead of kfree()

Freeing netdev without free_netdev() leads to net, tx leaks.
And it may lead to dereferencing freed pointer.

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