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:
Dave Kleikamp 2013-07-01 16:49:22 -05:00 committed by David S. Miller
parent e8e2bfd103
commit aabb9875d0
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}