diff options
author | 2007-02-19 17:22:02 +0000 | |
---|---|---|
committer | 2007-02-19 17:22:02 +0000 | |
commit | d267521f6ab1a070b71be6b9bf99de7d7623098e (patch) | |
tree | d6b718bfefa25436196aa459dd02715285a9e678 /sys/dev/usb/if_ral.c | |
parent | only make this interface available to the kernel for now, discussed witha (diff) | |
download | wireguard-openbsd-d267521f6ab1a070b71be6b9bf99de7d7623098e.tar.xz wireguard-openbsd-d267521f6ab1a070b71be6b9bf99de7d7623098e.zip |
do not do a curproc test for interrupt context, because it is plainly wrong.
this lets these work on macppc, for instance
diagnosed by kettenis, but damien is not around, so ok jsg and others
Diffstat (limited to 'sys/dev/usb/if_ral.c')
-rw-r--r-- | sys/dev/usb/if_ral.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index 3e5da8453e6..1b35c9a6fe0 100644 --- a/sys/dev/usb/if_ral.c +++ b/sys/dev/usb/if_ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral.c,v 1.88 2007/01/02 14:43:50 claudio Exp $ */ +/* $OpenBSD: if_ral.c,v 1.89 2007/02/19 17:22:02 deraadt Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -638,14 +638,10 @@ ural_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg) timeout_del(&sc->scan_to); timeout_del(&sc->amrr_to); + /* do it in a process context */ sc->sc_state = nstate; sc->sc_arg = arg; - if (curproc != NULL) { - ural_task(sc); - } else { - /* do it in a process context */ - usb_add_task(sc->sc_udev, &sc->sc_task); - } + usb_add_task(sc->sc_udev, &sc->sc_task); return 0; } |