Drain watchdog callouts before detaching. This prevents a panic while
unloading the kernel module. Submitted by: Tom Cough
This commit is contained in:
parent
23ba157d30
commit
e4151ac77b
@ -903,6 +903,10 @@ twa_shutdown(device_t dev)
|
||||
/* Disconnect interrupts. */
|
||||
error = twa_teardown_intr(sc);
|
||||
|
||||
/* Stop watchdog task. */
|
||||
callout_drain(&(sc->watchdog_callout[0]));
|
||||
callout_drain(&(sc->watchdog_callout[1]));
|
||||
|
||||
/* Disconnect from the controller. */
|
||||
if ((error = tw_cl_shutdown_ctlr(&(sc->ctlr_handle), 0))) {
|
||||
tw_osli_printf(sc, "error = %d",
|
||||
|
Loading…
x
Reference in New Issue
Block a user