commit | e65cdfae71cecec0fcd43a3f9ac8b5e4ae52db08 | [log] [tgz] |
---|---|---|
author | Xi Wang <xi.wang@gmail.com> | Mon Apr 09 15:48:55 2012 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Apr 17 15:54:57 2012 -0700 |
tree | 58a21396dcd320fd530fc1e49be4f87edb2582d0 | |
parent | 8963c487a80b4688c9e68dcc504a90074aacc145 [diff] |
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>