mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Drain watchdog callouts before detaching. This prevents a panic while
unloading the kernel module. Submitted by: Tom Cough
This commit is contained in:
parent
a4703857ff
commit
08390ba4c9
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue