aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r--drivers/net/wireless/libertas/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 9232b975a42c..5d2bf539d4b9 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -1414,8 +1414,7 @@ void lbs_interrupt(struct lbs_private *priv)
1414 1414
1415 lbs_deb_thread("lbs_interrupt: intcounter=%d\n", priv->intcounter); 1415 lbs_deb_thread("lbs_interrupt: intcounter=%d\n", priv->intcounter);
1416 1416
1417 if (spin_trylock(&priv->driver_lock)) { 1417 if (!spin_is_locked(&priv->driver_lock)) {
1418 spin_unlock(&priv->driver_lock);
1419 printk(KERN_CRIT "%s called without driver_lock held\n", __func__); 1418 printk(KERN_CRIT "%s called without driver_lock held\n", __func__);
1420 WARN_ON(1); 1419 WARN_ON(1);
1421 } 1420 }