android_kernel_xiaomi_sm8350/drivers/usb/host
Eric Sesterhenn d5ce1379be [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:
2006-06-21 15:04:15 -07:00
..
ehci-au1xxx.c [PATCH] USB: allow multiple types of EHCI controllers to be built as modules 2006-06-21 15:04:09 -07:00
ehci-dbg.c
ehci-fsl.c [PATCH] USB: allow multiple types of EHCI controllers to be built as modules 2006-06-21 15:04:09 -07:00
ehci-fsl.h
ehci-hcd.c [PATCH] USB: allow multiple types of EHCI controllers to be built as modules 2006-06-21 15:04:09 -07:00
ehci-hub.c
ehci-mem.c
ehci-pci.c [PATCH] USB: allow multiple types of EHCI controllers to be built as modules 2006-06-21 15:04:09 -07:00
ehci-q.c
ehci-sched.c [PATCH] improved TT scheduling for EHCI 2006-06-21 15:04:13 -07:00
ehci.h
hc_crisv10.c
hc_crisv10.h
isp116x-hcd.c [PATCH] USB: negative index in drivers/usb/host/isp116x-hcd.c 2006-06-21 15:04:15 -07:00
isp116x.h
Kconfig [PATCH] improved TT scheduling for EHCI 2006-06-21 15:04:13 -07:00
Makefile
ohci-at91.c [PATCH] USB: at91 usb driver supend/resume fixes 2006-04-14 11:12:25 -07:00
ohci-au1xxx.c
ohci-dbg.c
ohci-hcd.c [PATCH] USB: fix bug in ohci-hcd.c ohci_restart() 2006-05-08 23:43:54 -07:00
ohci-hub.c
ohci-lh7a404.c
ohci-mem.c
ohci-omap.c
ohci-pci.c [PATCH] USB: Use new PCI_CLASS_SERIAL_USB_* defines 2006-04-27 10:28:59 -07:00
ohci-ppc-soc.c
ohci-pxa27x.c [ARM] 3547/1: PXA-OHCI: Allow platforms to specify a power budget 2006-06-08 22:44:07 +01:00
ohci-q.c
ohci-s3c2410.c [PATCH] USB: S3C2410: use clk_enable() to ensure 48MHz to OHCI core 2006-04-14 11:12:26 -07:00
ohci-sa1111.c
ohci.h
pci-quirks.c [PATCH] USB: pci-quirks.c: proper prototypes 2006-04-14 11:12:20 -07:00
pci-quirks.h [PATCH] USB: pci-quirks.c: proper prototypes 2006-04-14 11:12:20 -07:00
sl811_cs.c [PATCH] pcmcia: use bitfield instead of p_state and state 2006-03-31 17:26:33 +02:00
sl811-hcd.c
sl811.h
uhci-debug.c [PATCH] UHCI: remove ISO TDs as they are used 2006-06-21 15:04:12 -07:00
uhci-hcd.c [PATCH] UHCI: use integer-sized frame numbers 2006-06-21 15:04:12 -07:00
uhci-hcd.h [PATCH] UHCI: remove ISO TDs as they are used 2006-06-21 15:04:12 -07:00
uhci-hub.c [PATCH] UHCI: Reimplement FSBR 2006-06-21 15:04:11 -07:00
uhci-q.c [PATCH] UHCI: remove ISO TDs as they are used 2006-06-21 15:04:12 -07:00