]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix potential buffer overflow in dt configuration
authorBing Zhao <bzhao@marvell.com>
Wed, 8 Jan 2014 23:45:56 +0000 (15:45 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 9 Jan 2014 15:56:40 +0000 (10:56 -0500)
commitd2204f0c04ee06ad41ca15d8624bcb5e32a53b9d
treeae3353022595d1dcffb30641aa9e6f60139c4f5f
parentf633b596fa187248b77f68b3f40eac66cd6578a7
mwifiex: fix potential buffer overflow in dt configuration

If cfgdata length exceeds the command buffer size we will end up
getting buffer overflow problem. Fix it by checking the buffer
size less the command header length.

Reviewed-by: Paul Stewart <pstew@chromium.org>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_cmd.c