From: Xi Wang Date: Mon, 9 Apr 2012 19:48:55 +0000 (-0400) Subject: usb: usbtest: avoid integer overflow in test_ctrl_queue() X-Git-Tag: v3.4-rc4~14^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e65cdfae71cecec0fcd43a3f9ac8b5e4ae52db08;p=pandora-kernel.git 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 Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed