Wait for the callout to finish before unloading the module
MFC after: 3 days
This commit is contained in:
parent
c926a8ffb2
commit
73ece4aff2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user