linux/drivers/usb/dwc2
William Wu 8760675932 usb: dwc2: fix the incorrect bitmaps for the ports of multi_tt hub
The dwc2_get_ls_map() use ttport to reference into the
bitmap if we're on a multi_tt hub. But the bitmaps index
from 0 to (hub->maxchild - 1), while the ttport index from
1 to hub->maxchild. This will cause invalid memory access
when the number of ttport is hub->maxchild.

Without this patch, I can easily meet a Kernel panic issue
if connect a low-speed USB mouse with the max port of FE2.1
multi-tt hub (1a40:0201) on rk3288 platform.

Fixes: 9f9f09b048 ("usb: dwc2: host: Totally redo the microframe scheduler")
Cc: <stable@vger.kernel.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Minas Harutyunyan hminas@synopsys.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2018-06-19 12:48:13 +03:00
..
core_intr.c usb: dwc2: Change reading of current frame number flow. 2018-05-15 10:17:09 +03:00
core.c usb: dwc2: Fix kernel doc's warnings. 2018-05-21 10:02:13 +03:00
core.h usb: dwc2: WA for Full speed ISOC IN in DDMA mode. 2018-05-21 10:36:14 +03:00
debug.h usb: dwc2: Fix kernel doc's warnings. 2018-05-21 10:02:13 +03:00
debugfs.c USB: dwc2: no need to check return value of debugfs_create functions 2018-05-31 12:54:22 +02:00
gadget.c usb: dwc2: gadget: fix packet drop issue for ISOC OUT transfers 2018-06-18 12:41:01 +03:00
hcd_ddma.c usb: dwc2: Fix kernel doc's warnings. 2018-05-21 10:02:13 +03:00
hcd_intr.c usb: dwc2: Fix kernel doc's warnings. 2018-05-21 10:02:13 +03:00
hcd_queue.c usb: dwc2: fix the incorrect bitmaps for the ports of multi_tt hub 2018-06-19 12:48:13 +03:00
hcd.c usb: dwc2: Fix host exit from hibernation flow. 2018-06-19 12:48:12 +03:00
hcd.h usb: dwc2: Fix kernel doc's warnings. 2018-05-21 10:02:13 +03:00
hw.h usb: dwc2: Add Interpacket Gap(IPG) feature support 2018-05-15 10:16:47 +03:00
Kconfig usb: add CONFIG_USB_PCI for system have both PCI HW and non-PCI based USB HW 2017-03-17 13:16:56 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
params.c usb: dwc2: gadget: Fix coverity issue 2018-05-21 10:40:16 +03:00
pci.c usb: dwc2: pci: Fix error return code in dwc2_pci_probe() 2018-05-21 10:36:14 +03:00
platform.c usb: dwc2: Force mode optimizations 2018-03-13 10:47:58 +02:00