diff options
author | David S. Miller <davem@davemloft.net> | 2011-08-03 19:36:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-03 19:36:41 -0400 |
commit | 5be1334062a2f358dc65016b5181e6edbfe3bd1e (patch) | |
tree | 02ec7afd0cacda2f364e49f0c8391690f6b41a24 /net | |
parent | f2c31e32b378a6653f8de606149d963baf11d7d3 (diff) | |
parent | a5d5a914770a81a1f775be2ee35b9fa8fd19d381 (diff) |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 28d2aa109be..e83e7fee3bc 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -3464,7 +3464,7 @@ static int nl80211_trigger_scan(struct sk_buff *skb, struct genl_info *info) | |||
3464 | tmp) { | 3464 | tmp) { |
3465 | enum ieee80211_band band = nla_type(attr); | 3465 | enum ieee80211_band band = nla_type(attr); |
3466 | 3466 | ||
3467 | if (band < 0 || band > IEEE80211_NUM_BANDS) { | 3467 | if (band < 0 || band >= IEEE80211_NUM_BANDS) { |
3468 | err = -EINVAL; | 3468 | err = -EINVAL; |
3469 | goto out_free; | 3469 | goto out_free; |
3470 | } | 3470 | } |