ath9k: Unlock sc->mutex on error path
PATCH 1/1 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 <[email protected]>
--- drivers/net/wireless/ath9k/main.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/ath9k/main.c +1 -0
@@ -2145,6 +2145,7 @@ static int ath9k_add_interface(struct iedefault :DPRINTF (sc,ATH_DBG_FATAL ,"Interface type %d not yet supported\n" , conf->type); +mutex_unlock (&sc->mutex);return -EOPNOTSUPP ; }
Signature · 1 line
Jouni Malinen PGP id EFC895FA