summaryrefslogtreecommitdiff
path: root/drivers/misc/atmel_pwm.c
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2012-04-09 19:48:55 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-17 22:54:57 (GMT)
commite65cdfae71cecec0fcd43a3f9ac8b5e4ae52db08 (patch)
tree58a21396dcd320fd530fc1e49be4f87edb2582d0 /drivers/misc/atmel_pwm.c
parent8963c487a80b4688c9e68dcc504a90074aacc145 (diff)
downloadlinux-fsl-qoriq-e65cdfae71cecec0fcd43a3f9ac8b5e4ae52db08.tar.xz
usb: usbtest: avoid integer overflow in test_ctrl_queue()
Avoid overflowing context.count = param->sglen * param->iterations, where both `sglen' and `iterations' are from userspace. | test_ctrl_queue() | usbtest_ioctl() Keep -EOPNOTSUPP for error code. Signed-off-by: Xi Wang <xi.wang@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/atmel_pwm.c')
0 files changed, 0 insertions, 0 deletions