]> Pileus Git - ~andy/linux/blobdiff - net/mac80211/rc80211_pid_algo.c
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[~andy/linux] / net / mac80211 / rc80211_pid_algo.c
index 6704fb55c6b20d419940acdc371d8689b0e6aeee..a0bef767ceb5b5d97e43a877d7238c85fe884d16 100644 (file)
@@ -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;
        }