diff options
author | David S. Miller <davem@davemloft.net> | 2009-03-10 13:04:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-10 13:04:16 +0100 |
commit | d5df2a16133f4eb22f9a6bbc07723443568d362f (patch) | |
tree | 7135c9054db234feec6001c6d938a715b29e2370 /net/wireless | |
parent | qlge: bugfix: Fix endian issue related to rx buffers. (diff) | |
parent | bnx2x: Using DMAE to initialize the chip (diff) | |
download | linux-d5df2a16133f4eb22f9a6bbc07723443568d362f.tar.xz linux-d5df2a16133f4eb22f9a6bbc07723443568d362f.zip |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/bnx2x_main.c
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/rt2x00/rt73usb.c
Diffstat (limited to 'net/wireless')
-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 ce66bfdf57ec..58df98f10990 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -392,7 +392,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; |