libertas: add might_sleep() to wait command response path
Marcelo Tosatti
mtosatti at redhat.unroutablecom
Sun Dec 24 04:24:34 EST 2006
Commit: 8aad2b6ac58dad283c48feb085ce84d83f3c827a
Parent: 97fae484ec9151fe7398c049bd1a11b1a88b26f2
commit 8aad2b6ac58dad283c48feb085ce84d83f3c827a
Author: Marcelo Tosatti <mtosatti at redhat.com>
AuthorDate: Fri Dec 22 19:06:59 2006 -0200
Commit: Andres Salomon <dilinger at debian.org>
CommitDate: Sun Dec 24 04:27:08 2006 -0500
libertas: add might_sleep() to wait command response path
Find buggy code which attempts to sleep from atomic contexes.
Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
(cherry picked from a4fe076b4737e6dba408b8e56a06c699212e1856 commit)
---
drivers/net/wireless/libertas/wlan_cmd.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/libertas/wlan_cmd.c b/drivers/net/wireless/libertas/wlan_cmd.c
index 69d98d0..979ce75 100644
--- a/drivers/net/wireless/libertas/wlan_cmd.c
+++ b/drivers/net/wireless/libertas/wlan_cmd.c
@@ -1756,6 +1756,7 @@ #define ACTION_NUMLED_TLVTYPE_LEN_FIELDS
if (wait_option & HostCmd_OPTION_WAITFORRSP) {
dprintk(1, "PREP_CMD: Wait for CMD response\n");
+ might_sleep();
wait_event_interruptible(CmdNode->cmdwait_q,
CmdNode->CmdWaitQWoken);
}
More information about the Commits-kernel
mailing list