iwlagn: fix priv->cfg->ht_params NULL pointer dereference
PATCH 1/1 iwlagn: fix priv->cfg->ht_params NULL pointer dereference
This fix regression introduced by commit:
commit 15b3f3b006b42a678523cad989bfd60b76bf4403
Author: Wey-Yi Guy <[email protected]> Date: Fri Jun 3 07:54:13 2011 -0700
iwlagn: set smps mode after assoc for 1000 device
Also remove unneeded brackets on the way.
Address:
https://bugzilla.redhat.com/show_bug.cgi?id=744155
If fix will not get 3.1 release, it should be applied in 3.1 stable.
Cc [email protected] # 3.1+
Signed-off-by Stanislaw Gruszka <[email protected]>
--- drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +2 -2
@@ -296,8 +296,8 @@ static int iwlagn_rxon_connect(struct iwl_priv *priv,return ret; } -if ((ctx->vif && ctx->vif->type ==NL80211_IFTYPE_STATION ) && - priv->cfg->ht_params->smps_mode) +if (ctx->vif && ctx->vif->type ==NL80211_IFTYPE_STATION && + priv->cfg->ht_params && priv->cfg->ht_params->smps_mode)ieee80211_request_smps (ctx->vif, priv->cfg->ht_params->smps_mode);
Signature · 1 line
1.7.1
Quoted 10 lines · Stanislaw Gruszka
This fix regression introduced by commit:
commit
15b3f3b006b42a678523cad989bfd60b76bf4403Author: Wey-Yi Guy <[email protected]> Date: Fri Jun 3 07:54:13 2011 -0700iwlagn: set smps mode after assoc for 1000 device
Also remove unneeded brackets on the way.
Quoted 7 lines
Address:
https://bugzilla.redhat.com/show_bug.cgi?id=744155If fix will not get 3.1 release, it should be applied in 3.1 stable.
Cc [email protected] # 3.1+Signed-off-by Stanislaw Gruszka <[email protected]>
Acked-by Wey-Yi Guy <[email protected]>
Quoted 4 lines
--- drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Thanks a lot
Wey