Skip to content
Commit 1ebd47ef authored by Ido Schimmel's avatar Ido Schimmel Committed by David S. Miller
Browse files

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: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarJiri Pirko <jiri@resnulli.us>
Fixes: 4b8ac966

 ("rocker: introduce rocker switch driver")
Acked-by: default avatarScott Feldman <sfeldma@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7c764cec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment