projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8e2bfd
)
sunvnet: vnet_port_remove must call unregister_netdev
author
Dave Kleikamp
<dave.kleikamp@oracle.com>
Mon, 1 Jul 2013 21:49:22 +0000
(16:49 -0500)
committer
David S. Miller
<davem@davemloft.net>
Wed, 10 Jul 2013 20:35:52 +0000
(13:35 -0700)
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>
drivers/net/ethernet/sun/sunvnet.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/sun/sunvnet.c
b/drivers/net/ethernet/sun/sunvnet.c
index
1df0ff3
..
3df5684
100644
(file)
--- 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;
}