ar71xx: rewrite WNDR3700/3800 handling
[openwrt/staging/chunkeey.git] / package / mac80211 / patches / 851-p54spi-mutex-fix.patch
1 --- a/drivers/net/wireless/p54/p54spi.c
2 +++ b/drivers/net/wireless/p54/p54spi.c
3 @@ -581,11 +581,7 @@ static void p54spi_op_stop(struct ieee80
4 struct p54s_priv *priv = dev->priv;
5 unsigned long flags;
6
7 - if (mutex_lock_interruptible(&priv->mutex)) {
8 - /* FIXME: how to handle this error? */
9 - return;
10 - }
11 -
12 + mutex_lock(&priv->mutex);
13 WARN_ON(priv->fw_state != FW_STATE_READY);
14
15 cancel_work_sync(&priv->work);