Merge branch 'oprofile-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / net / mac80211 / rc80211_pid_algo.c
index 01d59a8e334ce832445c1c64ea3136c0bd373636..8bef9a1262ff33013e90231a1a09f32d29f7a0f3 100644 (file)
@@ -378,7 +378,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;
        }
 
This page took 0.024091 seconds and 5 git commands to generate.