Skip to content

Commit

Permalink
Wait for the callout to finish before unloading the module
Browse files Browse the repository at this point in the history
MFC after:	3 days
  • Loading branch information
bryanv committed Apr 24, 2014
1 parent c926a8f commit 73ece4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/dev/virtio/random/virtio_random.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 73ece4a

Please sign in to comment.