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:
d01a303
)
ar5523: Don't dereference sta if NULL
author
Pontus Fuchs
<
[email protected]
>
Mon, 5 Nov 2012 20:17:51 +0000
(21:17 +0100)
committer
John W. Linville
<
[email protected]
>
Wed, 14 Nov 2012 19:55:41 +0000
(14:55 -0500)
A missing else caused a potential NULL dereference.
Reported-by: Yuanhan Liu <
[email protected]
>
Signed-off-by: Pontus Fuchs <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ar5523/ar5523.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ar5523/ar5523.c
b/drivers/net/wireless/ath/ar5523/ar5523.c
index 4bd7714cd66aebe9c1e82667d8776dd28083860b..7157f7d311c5e001a2e071231d50755fc7a9c3cb 100644
(file)
--- a/
drivers/net/wireless/ath/ar5523/ar5523.c
+++ b/
drivers/net/wireless/ath/ar5523/ar5523.c
@@
-1196,8
+1196,8
@@
static void ar5523_create_rateset(struct ar5523 *ar,
if (!sta) {
ar5523_info(ar, "STA not found. Cannot set rates\n");
sta_rate_set = bss_conf->basic_rates;
- }
- sta_rate_set = sta->supp_rates[ar->hw->conf.channel->band];
+ }
else
+
sta_rate_set = sta->supp_rates[ar->hw->conf.channel->band];
ar5523_dbg(ar, "sta rate_set = %08x\n", sta_rate_set);