net/macb: fix misplaced call of free_netdev() in macb_remove()
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Mon, 15 Dec 2014 14:13:31 +0000 (15:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Dec 2014 16:50:45 +0000 (11:50 -0500)
commite965be7d17b9c82424cbb079506f0f9a4f41656c
tree7226f000d332ef6896a6005f4fba89b89f14d78f
parent6ff4a8ad4b6eae5171754fb60418bc81834aa09b
net/macb: fix misplaced call of free_netdev() in macb_remove()

fix a bug introduced by the multiqueue support patch:
"net/macb: add TX multiqueue support for gem"

the "bp" pointer to the netdev private data was dereferenced and used after the
associated memory had been freed by calling free_netdev().

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c