Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Mar 2015 20:13:07 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r280053 - head/sys/dev/wpi
Message-ID:  <201503152013.t2FKD7jv053166@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun Mar 15 20:13:07 2015
New Revision: 280053
URL: https://svnweb.freebsd.org/changeset/base/280053

Log:
  Run callout_reset() with mutex held.
  
  PR:		kern/197143
  Submitted by:	Andriy Voskoboinyk <s3erios@gmail.com>

Modified:
  head/sys/dev/wpi/if_wpi.c

Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c	Sun Mar 15 20:12:16 2015	(r280052)
+++ head/sys/dev/wpi/if_wpi.c	Sun Mar 15 20:13:07 2015	(r280053)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503152013.t2FKD7jv053166>