]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rocker: free netdevice during netdevice removal
authorIdo Schimmel <idosch@mellanox.com>
Sun, 2 Aug 2015 17:29:16 +0000 (19:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:24 +0000 (19:26 +0200)
commit715bb7ae43279e24a8d4d35a9ac8288b47a75500
tree414d78ea7f11622a32118931dc2870a28d743519
parent563071d6899c56701a47e945c5f39673bfcb0d38
rocker: free netdevice during netdevice removal

[ Upstream commit 1ebd47efa4e17391dfac8caa349c6a8d35f996d1 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/rocker/rocker.c