commit | 1ebd47efa4e17391dfac8caa349c6a8d35f996d1 | [log] [tgz] |
---|---|---|
author | Ido Schimmel <idosch@mellanox.com> | Sun Aug 02 19:29:16 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sun Aug 02 17:19:17 2015 -0700 |
tree | 990af8a88fe5b118c2550fc083451f1609e098a1 | |
parent | 7c764cec3703583247c4ab837c652975a3d41f4b [diff] |
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>