summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest.c
diff options
context:
space:
mode:
authorXinming Hu <huxm@marvell.com>2014-12-26 03:02:32 -0800
committerKalle Valo <kvalo@codeaurora.org>2015-01-06 21:09:25 +0200
commit2ab87d5d670d6946cae03b519ab9ef76c932d1a3 (patch)
tree9110d70cd47d3ec4c9305c72ad40f5b793a722e3 /lib/locking-selftest.c
parentbd7d0d103ae8c841c0e2b9fd6c5e591b2fae3bb5 (diff)
downloadlinux-2ab87d5d670d6946cae03b519ab9ef76c932d1a3.tar.bz2
mwifiex: do not send key material cmd when delete wep key
This patch fixes memory corruption reported by community developer. "Memory corruption occurs in mwifiex_ret_802_11_key_material_v1() when a short command response is received without a key length causing non initialised memory to be interpreted as the key length resulting in a memcpy() overwriting the part of the driver's private data structure beyond the key area." For v1 key material API firmwares, there is no need to send command to delete WEP key. WEP encryption/decryption is controlled by mac_control command. This patch avoids sending key material command in del_key case. Reported-by: Martin Fuzzey <mfuzzey@parkeon.com> Signed-off-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Cathy Luo <cluo@marvell.com> Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'lib/locking-selftest.c')
0 files changed, 0 insertions, 0 deletions