From: Jouni Malinen Date: Tue, 24 Feb 2009 11:40:01 +0000 (+0200) Subject: ath9k: Unlock sc->mutex on error path X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=222d0b33b3778a8fa156f3fca284d0a71f8e966b;p=openwrt%2Fstaging%2Fblogic.git ath9k: Unlock sc->mutex on error path An error path in ath9k_add_interface() did not unlock the sc->mutex and could leave the driver in quite unresponsive state. Signed-off-by: Jouni Malinen Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 1e3824215ac9..f5f5739a7a4b 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c @@ -2145,6 +2145,7 @@ static int ath9k_add_interface(struct ieee80211_hw *hw, default: DPRINTF(sc, ATH_DBG_FATAL, "Interface type %d not yet supported\n", conf->type); + mutex_unlock(&sc->mutex); return -EOPNOTSUPP; }