Commit fc97431a authored by David Kilroy's avatar David Kilroy Committed by John W. Linville

orinoco_usb: avoid in_atomic

We expect to be either in process contect or soft interrupt context. So
use in_softirq instead.
Signed-off-by: default avatarDavid Kilroy <kilroyd@googlemail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9afac70a
...@@ -701,7 +701,7 @@ static void ezusb_req_ctx_wait(struct ezusb_priv *upriv, ...@@ -701,7 +701,7 @@ static void ezusb_req_ctx_wait(struct ezusb_priv *upriv,
case EZUSB_CTX_REQ_SUBMITTED: case EZUSB_CTX_REQ_SUBMITTED:
case EZUSB_CTX_REQ_COMPLETE: case EZUSB_CTX_REQ_COMPLETE:
case EZUSB_CTX_RESP_RECEIVED: case EZUSB_CTX_RESP_RECEIVED:
if (in_atomic()) { if (in_softirq()) {
/* If we get called from a timer, timeout timers don't /* If we get called from a timer, timeout timers don't
* get the chance to run themselves. So we make sure * get the chance to run themselves. So we make sure
* that we don't sleep for ever */ * that we don't sleep for ever */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment