aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>2011-06-02 23:24:06 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-03 15:16:35 -0400
commit0c34861e7c66435ab0986509ec20055c402f29d8 (patch)
tree33d173aaf317d06d397fcd3dba94f276064b4190 /drivers
parent5c30c76ee616fffb47cbd9810bfd0a99ce4ddb38 (diff)
iwlegacy: add missing null check
lq_sta has other null checks in this function. assuming they are correct, this additional null check should be added too. Incorporating suggestion from Gustavo Padovan. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-4965-rs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-4965-rs.c b/drivers/net/wireless/iwlegacy/iwl-4965-rs.c
index 24d149909ba3..9b65153bdd01 100644
--- a/drivers/net/wireless/iwlegacy/iwl-4965-rs.c
+++ b/drivers/net/wireless/iwlegacy/iwl-4965-rs.c
@@ -2275,6 +2275,9 @@ iwl4965_rs_get_rate(void *priv_r, struct ieee80211_sta *sta, void *priv_sta,
2275 if (rate_control_send_low(sta, priv_sta, txrc)) 2275 if (rate_control_send_low(sta, priv_sta, txrc))
2276 return; 2276 return;
2277 2277
2278 if (!lq_sta)
2279 return;
2280
2278 rate_idx = lq_sta->last_txrate_idx; 2281 rate_idx = lq_sta->last_txrate_idx;
2279 2282
2280 if (lq_sta->last_rate_n_flags & RATE_MCS_HT_MSK) { 2283 if (lq_sta->last_rate_n_flags & RATE_MCS_HT_MSK) {