drivers/net/wireless/hostap: Integer overflow
commit1558efd0d48671845d2bd9ad80ba042577afd578
authorWenliang Fan <fanwlexca@gmail.com>
Wed, 18 Dec 2013 05:56:12 +0000 (18 13:56 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 3 Jan 2014 20:36:56 +0000 (3 15:36 -0500)
tree08b013dced0bfc309a356cc32e9ae078ea928753
parentc3c5bb31ea046721bc5fe3e54b45c7a13677f398
drivers/net/wireless/hostap: Integer overflow

The local variable 'value' comes from 'extra', a parameter of function
'prism2_ioctl_priv_prism2_param'. If a large number passed to 'value',
there would be an integer overflow in the following line:
local->passive_scan_timer.expires = jiffies +
local->passive_scan_interval * HZ

Signed-off-by: Wenliang Fan <fanwlexca@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/hostap/hostap_ioctl.c