Skip to contentSkip to conversation

ath9k: Unlock sc->mutex on error path

PATCH New Jouni Malinen 1 participant 1 message Feb 24, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

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.

---
 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 ie
 	default:
 		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