From: Dave Kleikamp Date: Mon, 1 Jul 2013 21:49:22 +0000 (-0500) Subject: sunvnet: vnet_port_remove must call unregister_netdev X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=aabb9875d02559ab9b928cd6f259a5cc4c21a589;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sun/sunvnet.c b/drivers/net/ethernet/sun/sunvnet.c index 1df0ff3839e8..3df56840a3b9 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; }