svn commit: r264867 - head/sys/dev/virtio/random

Bryan Venteicher bryanv at FreeBSD.org
Thu Apr 24 05:04:55 UTC 2014


Author: bryanv
Date: Thu Apr 24 05:04:54 2014
New Revision: 264867
URL: http://svnweb.freebsd.org/changeset/base/264867

Log:
  Wait for the callout to finish before unloading the module
  
  MFC after:	3 days

Modified:
  head/sys/dev/virtio/random/virtio_random.c

Modified: head/sys/dev/virtio/random/virtio_random.c
==============================================================================
--- head/sys/dev/virtio/random/virtio_random.c	Thu Apr 24 04:43:50 2014	(r264866)
+++ head/sys/dev/virtio/random/virtio_random.c	Thu Apr 24 05:04:54 2014	(r264867)
@@ -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);
 }


More information about the svn-src-head mailing list