]> git.openfabrics.org - ~emulex/infiniband.git/commit
mwifiex: fix probable memory corruption while processing TDLS frame
authorAvinash Patil <patila@marvell.com>
Fri, 12 Sep 2014 14:38:46 +0000 (20:08 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Sep 2014 19:00:50 +0000 (15:00 -0400)
commit3c99832d74777c9ec5545a92450fac5d37b0d0e1
tree2df41a172c90417e2175dcc424f94d3f86a7df37
parent4721c63b929b13bce6860dc8ec068f86efcab2ea
mwifiex: fix probable memory corruption while processing TDLS frame

Size of RSN IE buffer in driver is 254 while maximum size of received buffer
to be copied to RSN IE buffer can be 255. Add boundary check to copy maximum
of 254 bytes into RSN IE buffer.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/tdls.c