aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-08-03 16:36:41 -0700
committerDavid S. Miller <davem@davemloft.net>2011-08-03 16:36:41 -0700
commit5be1334062a2f358dc65016b5181e6edbfe3bd1e (patch)
tree02ec7afd0cacda2f364e49f0c8391690f6b41a24 /net
parentf2c31e32b378a6653f8de606149d963baf11d7d3 (diff)
parenta5d5a914770a81a1f775be2ee35b9fa8fd19d381 (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.c2
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)
tmp) {
enum ieee80211_band band = nla_type(attr);
- if (band < 0 || band > IEEE80211_NUM_BANDS) {
+ if (band < 0 || band >= IEEE80211_NUM_BANDS) {
err = -EINVAL;
goto out_free;
}