diff mbox

[2.6.32.y] hostap_cs: fix sleeping function called from invalid context

Message ID 4D35A87D.3020600@canonical.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Tim Gardner Jan. 18, 2011, 2:49 p.m. UTC
None
diff mbox

Patch

From 638d3ea93e2a9cccb860d9e31c84e5d3a3eb38bd Mon Sep 17 00:00:00 2001
From: Tim Gardner <tim.gardner@canonical.com>
Date: Tue, 18 Jan 2011 07:47:45 -0700
Subject: [PATCH] 2.6.32.y, hostap: Return IRQ_NONE if the device has not been configured

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
 drivers/net/wireless/hostap/hostap_hw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/hostap/hostap_hw.c b/drivers/net/wireless/hostap/hostap_hw.c
index 8721850..789a503 100644
--- a/drivers/net/wireless/hostap/hostap_hw.c
+++ b/drivers/net/wireless/hostap/hostap_hw.c
@@ -2624,7 +2624,7 @@  static irqreturn_t prism2_interrupt(int irq, void *dev_id)
 			printk(KERN_DEBUG "%s: Interrupt, but dev not configured\n",
 			       dev->name);
 		}
-		return IRQ_HANDLED;
+		return IRQ_NONE;
 	}
 
 	iface = netdev_priv(dev);
-- 
1.7.0.4