summaryrefslogtreecommitdiffstats
path: root/sys/compat/ndis/kern_ndis.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-02-23 16:25:08 +0000
committerjhb <jhb@FreeBSD.org>2007-02-23 16:25:08 +0000
commite21fb2b555d36a49b232ee191ef77f745b6c5280 (patch)
treee93bd90cb35a83882bef6ca2e41bbf03c4c5a077 /sys/compat/ndis/kern_ndis.c
parent401f7aaf8a4b36c5409b47caeb111224c19cfa64 (diff)
downloadFreeBSD-src-e21fb2b555d36a49b232ee191ef77f745b6c5280.zip
FreeBSD-src-e21fb2b555d36a49b232ee191ef77f745b6c5280.tar.gz
Use 'pause' in several places rather than trying to tsleep() on NULL (which
triggers a KASSERT) or local variables. In the case of kern_ndis, the tsleep() actually used a common sleep address (curproc) making it susceptible to a premature wakeup.
Diffstat (limited to 'sys/compat/ndis/kern_ndis.c')
-rw-r--r--sys/compat/ndis/kern_ndis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/ndis/kern_ndis.c b/sys/compat/ndis/kern_ndis.c
index 396434e..189636d 100644
--- a/sys/compat/ndis/kern_ndis.c
+++ b/sys/compat/ndis/kern_ndis.c
@@ -1248,7 +1248,7 @@ ndis_init_nic(arg)
* expects them to fire before the halt is called.
*/
- tsleep(curthread->td_proc, PWAIT, "ndwait", hz);
+ pause("ndwait", hz);
NDIS_LOCK(sc);
sc->ndis_block->nmb_devicectx = sc;
OpenPOWER on IntegriCloud