rndis_wlan: fix buffer overflow in rndis_query_oid
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Sun, 22 Nov 2009 18:16:42 +0000 (20:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Nov 2009 22:05:40 +0000 (17:05 -0500)
commitc1f8ca1d837148bf061d6ffa2038366e3cf0e4d7
tree99fca98ff500fedf95d68a0c6ae3772490d0d9ce
parent841507f5c1a5d2f196afb12e95eb11914f029832
rndis_wlan: fix buffer overflow in rndis_query_oid

rndis_query_oid overwrites *len which stores buffer size to return full size
of received command and then uses *len with memcpy to fill buffer with
command.

Ofcourse memcpy should be done before replacing buffer size.

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