]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mwifiex: limit channel number not to overflow memory
authorStone Piao <piaoyun@marvell.com>
Sat, 30 Mar 2013 02:21:21 +0000 (19:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Apr 2013 16:52:07 +0000 (09:52 -0700)
commit86489ad1d0346c94a575c2e370a57d3ffb9bd2ad
tree4d1a93fb166c82eaaff8ec4dfe1a6bab62213def
parenteea464d4f60f3482680ca831327b8f6e0f75b52f
mwifiex: limit channel number not to overflow memory

commit 901ceba4e81e9dd6b4a3c4c37ee22000a6c5c65f upstream.

Limit the channel number in scan request, or the driver scan
config structure memory will be overflowed.

Signed-off-by: Stone Piao <piaoyun@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/cfg80211.c