summaryrefslogtreecommitdiffstats
path: root/drivers/usb/net
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-06-02 05:48:45 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-22 00:04:15 +0200
commitd5ce1379be9c79d4bcf201c20c5cc87bb2bc973c (patch)
tree35920fe3fd457b4a472dfa999b76393637d2d544 /drivers/usb/net
parent[PATCH] USB: Add Sierra Wireless MC5720 ID to airprime.c (diff)
downloadlinux-d5ce1379be9c79d4bcf201c20c5cc87bb2bc973c.tar.xz
linux-d5ce1379be9c79d4bcf201c20c5cc87bb2bc973c.zip
[PATCH] USB: negative index in drivers/usb/host/isp116x-hcd.c
From: Eric Sesterhenn <snakebyte@gmx.de> This fixes coverity Bug #390. With the following code ret = ep->branch = balance(isp116x, ep->period, ep->load); if (ret < 0) goto fail; the problem is that ret and balance are of the type int, and ep->branch is u16. so the int balance() returns gets reduced to u16 and then converted to an int again, which removes the sign. Maybe the following little c program can explain it better:
Diffstat (limited to 'drivers/usb/net')
0 files changed, 0 insertions, 0 deletions