From 73ece4aff2d7b0ba22435ec8ca89745a0520571a Mon Sep 17 00:00:00 2001 From: bryanv Date: Thu, 24 Apr 2014 05:04:54 +0000 Subject: [PATCH] Wait for the callout to finish before unloading the module MFC after: 3 days --- sys/dev/virtio/random/virtio_random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/virtio/random/virtio_random.c b/sys/dev/virtio/random/virtio_random.c index f44878f21897..bd1f0dfce725 100644 --- a/sys/dev/virtio/random/virtio_random.c +++ b/sys/dev/virtio/random/virtio_random.c @@ -156,7 +156,7 @@ vtrnd_detach(device_t dev) sc = device_get_softc(dev); - callout_stop(&sc->vtrnd_callout); + callout_drain(&sc->vtrnd_callout); return (0); } -- 2.41.0