Skip to contentSkip to conversation

iwlwifi: unregister LEDs if mac80211 registration fails

PATCH New Johannes Berg 1 participant 1 message Jun 5, 2012 Networking drivers (wireless)

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 iwlwifi: unregister LEDs if mac80211 registration fails

From: Johannes Berg <[email protected]>

Otherwise the LEDs stick around and cause issues the next time around since they're still there but not really hooked up.

---
 drivers/net/wireless/iwlwifi/iwl-mac80211.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/iwlwifi/iwl-mac80211.c +1 -0
index 5d158ca..3ee23134 100644
@@ -251,6 +251,7 @@ int iwlagn_mac_setup_register(struct iwl_priv *priv,
 	ret = ieee80211_register_hw(priv->hw);
 	if (ret) {
 		IWL_ERR(priv, "Failed to register hw (error %d)\n", ret);
+		iwl_leds_exit(priv);
 		return ret;
 	}
 	priv->mac80211_registered = 1;
Signature · 1 line
1.7.10