diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-11 10:29:28 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-11 10:29:28 +0100 |
commit | 1d8ce7bc4d05b4a5c04dc17f92fef26989fb5935 (patch) | |
tree | 12df0f2e25e95654156b2900bd6df1abb3c2e87a /net/wireless/reg.c | |
parent | 3a450de1365d20afde406f0d9b2931a5e4a4fd6a (diff) | |
parent | 16b71fdf97599f1b1b7f38418ee9922d9f117396 (diff) |
Merge branch 'linus' into core/percpu
Conflicts:
arch/x86/include/asm/fixmap_64.h
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r-- | net/wireless/reg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 85c9034c59b..bd0a16c3de5 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -380,7 +380,8 @@ static bool is_valid_reg_rule(const struct ieee80211_reg_rule *rule) freq_diff = freq_range->end_freq_khz - freq_range->start_freq_khz; - if (freq_diff <= 0 || freq_range->max_bandwidth_khz > freq_diff) + if (freq_range->end_freq_khz <= freq_range->start_freq_khz || + freq_range->max_bandwidth_khz > freq_diff) return false; return true; |