aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-02-24 06:40:01 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 14:53:04 -0500
commit222d0b33b3778a8fa156f3fca284d0a71f8e966b (patch)
treec7fea2c7a5700be2ff7a74886af00430e7a99376 /drivers/net/wireless
parent99da185a72ba685a5aaf49dff6a5fe83885112e4 (diff)
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 <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath9k/main.c1
1 files changed, 1 insertions, 0 deletions
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,
2145 default: 2145 default:
2146 DPRINTF(sc, ATH_DBG_FATAL, 2146 DPRINTF(sc, ATH_DBG_FATAL,
2147 "Interface type %d not yet supported\n", conf->type); 2147 "Interface type %d not yet supported\n", conf->type);
2148 mutex_unlock(&sc->mutex);
2148 return -EOPNOTSUPP; 2149 return -EOPNOTSUPP;
2149 } 2150 }
2150 2151