diff options
author | David S. Miller <davem@davemloft.net> | 2011-08-04 01:36:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-04 01:36:41 +0200 |
commit | 5be1334062a2f358dc65016b5181e6edbfe3bd1e (patch) | |
tree | 02ec7afd0cacda2f364e49f0c8391690f6b41a24 /net/wireless/nl80211.c | |
parent | net: fix NULL dereferences in check_peer_redir() (diff) | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next in... (diff) | |
download | linux-5be1334062a2f358dc65016b5181e6edbfe3bd1e.tar.xz linux-5be1334062a2f358dc65016b5181e6edbfe3bd1e.zip |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Diffstat (limited to 'net/wireless/nl80211.c')
-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 28d2aa109bee..e83e7fee3bc0 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; } |