mirror of https://gitee.com/openkylin/linux.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 <dave.kleikamp@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e8e2bfd103
commit
aabb9875d0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue