From 811fe0a8fbb43b95a234a71885d4e39411557c7d Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sun, 15 Mar 2015 20:13:07 +0000 Subject: [PATCH] Run callout_reset() with mutex held. PR: kern/197143 Submitted by: Andriy Voskoboinyk --- sys/dev/wpi/if_wpi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c index e67f18308fcd..e4ea1d02a6c3 100644 --- a/sys/dev/wpi/if_wpi.c +++ b/sys/dev/wpi/if_wpi.c @@ -4660,7 +4660,9 @@ wpi_radio_off(void *arg0, int pending) if (vap != NULL) ieee80211_stop(vap); + WPI_LOCK(sc); callout_reset(&sc->watchdog_rfkill, hz, wpi_watchdog_rfkill, sc); + WPI_UNLOCK(sc); } static void