mirror of
https://github.com/torvalds/linux.git
synced 2026-06-11 08:03:05 +02:00
sunvnet: vnet_port_remove must call unregister_netdev
[ Upstream commit aabb9875d0 ]
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>
This commit is contained in:
parent
6641027f83
commit
e830fa9ba4
|
|
@ -1243,6 +1243,8 @@ static int vnet_port_remove(struct vio_dev *vdev)
|
|||
dev_set_drvdata(&vdev->dev, NULL);
|
||||
|
||||
kfree(port);
|
||||
|
||||
unregister_netdev(vp->dev);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user