diff options
author | Dave Kleikamp <dave.kleikamp@oracle.com> | 2013-07-01 21:49:22 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-10 20:35:52 (GMT) |
commit | aabb9875d02559ab9b928cd6f259a5cc4c21a589 (patch) | |
tree | 1bd1f6de190ebb010b56301dc27a0bc613b6b83d /drivers/net/ethernet/sun/sunvnet.c | |
parent | e8e2bfd1033aadfee334419b7d11eeba1bc9cbed (diff) | |
download | linux-aabb9875d02559ab9b928cd6f259a5cc4c21a589.tar.xz |
sunvnet: vnet_port_remove must call unregister_netdev
The missing call to unregister_netdev() leaves the interface active
after the driver is unloaded by rmmod.
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sunvnet.c')
-rw-r--r-- | drivers/net/ethernet/sun/sunvnet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sun/sunvnet.c b/drivers/net/ethernet/sun/sunvnet.c index 1df0ff3..3df5684 100644 --- a/drivers/net/ethernet/sun/sunvnet.c +++ b/drivers/net/ethernet/sun/sunvnet.c @@ -1239,6 +1239,8 @@ static int vnet_port_remove(struct vio_dev *vdev) dev_set_drvdata(&vdev->dev, NULL); kfree(port); + + unregister_netdev(vp->dev); } return 0; } |