p54spi: Lock fixes
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 851-p54spi-mutex-fix.patch
1 Index: compat-wireless-2011-11-04/drivers/net/wireless/p54/p54spi.c
2 ===================================================================
3 --- compat-wireless-2011-11-04.orig/drivers/net/wireless/p54/p54spi.c 2011-11-16 22:12:03.648829886 +0100
4 +++ compat-wireless-2011-11-04/drivers/net/wireless/p54/p54spi.c 2011-11-16 22:15:28.931976935 +0100
5 @@ -581,11 +581,7 @@ static void p54spi_op_stop(struct ieee80
6 struct p54s_priv *priv = dev->priv;
7 unsigned long flags;
8
9 - if (mutex_lock_interruptible(&priv->mutex)) {
10 - /* FIXME: how to handle this error? */
11 - return;
12 - }
13 -
14 + mutex_lock(&priv->mutex);
15 WARN_ON(priv->fw_state != FW_STATE_READY);
16
17 cancel_work_sync(&priv->work);