summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/pm34xx.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-09-06 12:32:30 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-20 23:31:54 (GMT)
commitdd173abfead903c7df54e977535973f3312cd307 (patch)
tree905398a016da8e714894786c24684fa532cace12 /arch/arm/mach-omap2/pm34xx.c
parent350aede603f7db7a9b4c1a340fbe89ccae6523a2 (diff)
downloadlinux-fsl-qoriq-dd173abfead903c7df54e977535973f3312cd307.tar.xz
Staging: vt6655: fix buffer overflow
"param->u.wpa_associate.wpa_ie_len" comes from the user. We should check it so that the copy_from_user() doesn't overflow the buffer. Also further down in the function, we assume that if "param->u.wpa_associate.wpa_ie_len" is set then "abyWPAIE[0]" is initialized. To make that work, I changed the test here to say that if "wpa_ie_len" is set then "wpa_ie" has to be a valid pointer or we return -EINVAL. Oddly, we only use the first element of the abyWPAIE[] array. So I suspect there may be some other issues in this function. Signed-off-by: Dan Carpenter <error27@gmail.com> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/arm/mach-omap2/pm34xx.c')
0 files changed, 0 insertions, 0 deletions