Wait for the callout to finish before unloading the module

MFC after:	3 days
This commit is contained in:
bryanv 2014-04-24 05:04:54 +00:00
parent c926a8ffb2
commit 73ece4aff2

View File

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