rndis_wlan: increase assocbuf size and validate association info offsets from driver
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 18 May 2010 08:27:31 +0000 (11:27 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 2 Jun 2010 20:13:20 +0000 (16:13 -0400)
commit3d1ca47eba76a31ad134e5c4d841234f5a6a92c3
tree562226b42dd5881b1efef9baf6c424d638bbb0ba
parentd5d1154ffdc87b618518629fce44d51834df0f2e
rndis_wlan: increase assocbuf size and validate association info offsets from driver

Buffer size for get_association_info was limited to WEXT event size. Since association
info no longer is sent through WEXT, this limit is not needed. Code also did not
check if data get truncated, memory outside buffer might be addressed. Fix all these.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rndis_wlan.c