usb: gadget: dummy_hcd: signedness bug in transfer()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 2 Mar 2012 18:51:00 +0000 (21:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2012 00:22:11 +0000 (16:22 -0800)
commitb1443ac0e486842c133b8805ee035ab3ff918763
treece08d4682ca61e901562a549485335918d4a57b1
parent6ef1a9276be455c114c000ef3d43666cb6ded371
usb: gadget: dummy_hcd: signedness bug in transfer()

"len" is unsigned so it's never less than zero.

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