USB: usbtest: prevent a divide by zero bug
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 17 Nov 2012 15:06:11 +0000 (18:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 21:32:26 +0000 (13:32 -0800)
commit564e69893c63cefe4bcbdeda4f940bf68b6b4491
treed7563b2a16afe3f6d0afcfd290e6b1c6a3650d05
parentfb4e98ab63433c4d3a1588ea91c73f1cd7ebaa00
USB: usbtest: prevent a divide by zero bug

If param->length is zero, then this could lead to a divide by zero bug
later in the function when we do: size %= max;

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usbtest.c