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 [PATCH] USB: EHCI for Freescale 83xx 2006-03-20 14:49:55 -08:00
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 [PATCH] USB: EHCI and NF2 quirk 2006-03-20 14:49:55 -08:00
ehci-mem.c [PATCH] USB: kzalloc() conversion for rest of drivers/usb 2006-03-20 14:49:59 -08:00
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 [PATCH] USB core and HCDs: don't put_device while atomic 2006-03-20 14:49:58 -08:00
ehci-sched.c [PATCH] improved TT scheduling for EHCI 2006-06-21 15:04:13 -07:00
ehci.h [PATCH] USB: EHCI and Freescale 83xx quirk 2006-03-20 14:49:55 -08:00
hc_crisv10.c [PATCH] USB: kzalloc() conversion for rest of drivers/usb 2006-03-20 14:49:59 -08:00
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 [PATCH] USB: isp116x-hcd: cleanup 2006-01-04 13:48:29 -08:00
Kconfig [PATCH] improved TT scheduling for EHCI 2006-06-21 15:04:13 -07:00
Makefile [PATCH] USB: hcd uses EXTRA_CFLAGS for -DDEBUG 2006-01-04 13:48:30 -08:00
ohci-at91.c [PATCH] USB: at91 usb driver supend/resume fixes 2006-04-14 11:12:25 -07:00
ohci-au1xxx.c [PATCH] USB: OHCI for AU1200 2006-03-20 14:49:55 -08:00
ohci-dbg.c [PATCH] OHCI PM updates 2005-10-28 16:47:40 -07:00
ohci-hcd.c [PATCH] USB: fix bug in ohci-hcd.c ohci_restart() 2006-05-08 23:43:54 -07:00
ohci-hub.c [PATCH] USB: ohci uses driver model wakeup flags 2006-03-20 14:49:56 -08:00
ohci-lh7a404.c [PATCH] fix more missing includes 2006-01-08 20:13:45 -08:00
ohci-mem.c [PATCH] OHCI PM updates 2005-10-28 16:47:40 -07:00
ohci-omap.c [PATCH] handle errors returned by platform_get_irq*() 2006-03-20 13:42:57 -08:00
ohci-pci.c [PATCH] USB: Use new PCI_CLASS_SERIAL_USB_* defines 2006-04-27 10:28:59 -07:00
ohci-ppc-soc.c [PATCH] fix more missing includes 2006-01-08 20:13:45 -08:00
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 [PATCH] USB: Rename hcd->hub_suspend to hcd->bus_suspend 2005-10-28 16:47:44 -07:00
ohci.h [PATCH] OHCI PM updates 2005-10-28 16:47:40 -07:00
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 [PATCH] USB core and HCDs: don't put_device while atomic 2006-03-20 14:49:58 -08:00
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