Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Kleikamp <dave.kleikamp@oracle.com>2013-07-01 16:49:22 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-28 16:18:40 -0700
commit83e460923c7640fe6af1a1b386513dcc26fe7251 (patch)
tree282783460017da7495d487b59120f02b347bad49
parent639e5920a9ae14b1eefc44a8740f5d0f816adb9a (diff)
sunvnet: vnet_port_remove must call unregister_netdev
[ Upstream commit aabb9875d02559ab9b928cd6f259a5cc4c21a589 ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/net/sunvnet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/sunvnet.c b/drivers/net/sunvnet.c
index bf3c762de620..cc77f7095a8f 100644
--- a/drivers/net/sunvnet.c
+++ b/drivers/net/sunvnet.c
@@ -1248,6 +1248,8 @@ static int vnet_port_remove(struct vio_dev *vdev)
dev_set_drvdata(&vdev->dev, NULL);
kfree(port);
+
+ unregister_netdev(vp->dev);
}
return 0;
}