From: Amit Shah Date: Mon, 28 May 2012 06:48:41 +0000 (+0530) Subject: virtio: rng: don't wait on host when module is going away X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4476987a9a4525db3ebe29538cc357ca589db4ac;p=linux-beck.git 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: Amit Shah Signed-off-by: Rusty Russell --- diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c index c8a935034218..2dc9ce183cc6 100644 --- a/drivers/char/hw_random/virtio-rng.c +++ b/drivers/char/hw_random/virtio-rng.c @@ -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); }