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>
This commit is contained in:
Родитель
6ef1a9276b
Коммит
b1443ac0e4
|
@ -1352,7 +1352,7 @@ top:
|
|||
len = dummy_perform_transfer(urb, req, len);
|
||||
|
||||
ep->last_io = jiffies;
|
||||
if (len < 0) {
|
||||
if ((int)len < 0) {
|
||||
req->req.status = len;
|
||||
} else {
|
||||
limit -= len;
|
||||
|
|
Загрузка…
Ссылка в новой задаче