iwlwifi: unregister LEDs if mac80211 registration fails
Johannes Berg
maintainerPATCH 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.
Signed-off-by Johannes Berg <[email protected]>
--- drivers/net/wireless/iwlwifi/iwl-mac80211.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/iwlwifi/iwl-mac80211.c +1 -0
@@ -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