rocker: free netdevice during netdevice removal
authorIdo Schimmel <idosch@mellanox.com>
Sun, 2 Aug 2015 17:29:16 +0000 (19:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2015 00:19:17 +0000 (17:19 -0700)
commit1ebd47efa4e17391dfac8caa349c6a8d35f996d1
tree990af8a88fe5b118c2550fc083451f1609e098a1
parent7c764cec3703583247c4ab837c652975a3d41f4b
rocker: free netdevice during netdevice removal

When removing a port's netdevice in 'rocker_remove_ports', we should
also free the allocated 'net_device' structure. Do that by calling
'free_netdev' after unregistering it.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Fixes: 4b8ac9660af ("rocker: introduce rocker switch driver")
Acked-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c