projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[firefly-linux-kernel-4.4.55.git]
/
net
/
mac80211
/
rc80211_pid_algo.c
diff --git
a/net/mac80211/rc80211_pid_algo.c
b/net/mac80211/rc80211_pid_algo.c
index 6704fb55c6b20d419940acdc371d8689b0e6aeee..a0bef767ceb5b5d97e43a877d7238c85fe884d16 100644
(file)
--- a/
net/mac80211/rc80211_pid_algo.c
+++ b/
net/mac80211/rc80211_pid_algo.c
@@
-380,7
+380,7
@@
static void *rate_control_pid_alloc(struct ieee80211_hw *hw,
for (i = 0; i < IEEE80211_NUM_BANDS; i++) {
sband = hw->wiphy->bands[i];
- if (sband->n_bitrates > max_rates)
+ if (sband
&& sband
->n_bitrates > max_rates)
max_rates = sband->n_bitrates;
}