diff options
author | 2012-04-09 15:48:55 -0400 | |
---|---|---|
committer | 2012-04-17 15:54:57 -0700 | |
commit | e65cdfae71cecec0fcd43a3f9ac8b5e4ae52db08 (patch) | |
tree | 58a21396dcd320fd530fc1e49be4f87edb2582d0 /arch/um/include/asm/processor-generic.h | |
parent | USB: fix deadlock in bConfigurationValue attribute method (diff) | |
download | linux-dev-e65cdfae71cecec0fcd43a3f9ac8b5e4ae52db08.tar.xz linux-dev-e65cdfae71cecec0fcd43a3f9ac8b5e4ae52db08.zip |
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 'arch/um/include/asm/processor-generic.h')
0 files changed, 0 insertions, 0 deletions