commit | 564e69893c63cefe4bcbdeda4f940bf68b6b4491 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Nov 17 18:06:11 2012 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Nov 21 13:32:26 2012 -0800 |
tree | d7563b2a16afe3f6d0afcfd290e6b1c6a3650d05 | |
parent | fb4e98ab63433c4d3a1588ea91c73f1cd7ebaa00 [diff] |
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>