projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c30c76
)
iwlegacy: add missing null check
author
Greg Dietsche
<
[email protected]
>
Fri, 3 Jun 2011 03:24:06 +0000
(22:24 -0500)
committer
John W. Linville
<
[email protected]
>
Fri, 3 Jun 2011 19:16:35 +0000
(15:16 -0400)
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 <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/iwlegacy/iwl-4965-rs.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlegacy/iwl-4965-rs.c
b/drivers/net/wireless/iwlegacy/iwl-4965-rs.c
index 24d149909ba346e4e02fb38e3db262cb5a5ba5e2..9b65153bdd018800a4d43a4d8184486bb7afbb3d 100644
(file)
--- 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,
if (rate_control_send_low(sta, priv_sta, txrc))
return;
+ if (!lq_sta)
+ return;
+
rate_idx = lq_sta->last_txrate_idx;
if (lq_sta->last_rate_n_flags & RATE_MCS_HT_MSK) {