Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4476987a authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell
Browse files

virtio: rng: don't wait on host when module is going away



No use waiting for input from host when the module is being removed.
We're going to remove the vq in the next step anyway, so just perform
any other steps for cleanup (currently none).

Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent cc8744e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -109,6 +109,7 @@ static int virtrng_probe(struct virtio_device *vdev)
static void __devexit virtrng_remove(struct virtio_device *vdev)
{
	vdev->config->reset(vdev);
	busy = false;
	hwrng_unregister(&virtio_hwrng);
	vdev->config->del_vqs(vdev);
}