diff options
author | jhb <jhb@FreeBSD.org> | 2007-02-23 16:25:08 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-02-23 16:25:08 +0000 |
commit | e21fb2b555d36a49b232ee191ef77f745b6c5280 (patch) | |
tree | e93bd90cb35a83882bef6ca2e41bbf03c4c5a077 /sys/compat | |
parent | 401f7aaf8a4b36c5409b47caeb111224c19cfa64 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/compat/ndis/kern_ndis.c | 2 |
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; |