diff options
author | William Wu <[email protected]> | 2018-05-21 18:12:00 +0800 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2018-06-19 12:48:13 +0300 |
commit | 8760675932ddb614e83702117d36ea644050c609 (patch) | |
tree | 547103445403587d3235a8a8aa9ec307af54489f /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 22bb5cfdf13ae70c6a34508a16cfeee48f162443 (diff) |
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: 9f9f09b048f5 ("usb: dwc2: host: Totally redo the microframe scheduler")
Cc: <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Acked-by: Minas Harutyunyan [email protected]>
Signed-off-by: William Wu <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions