aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorMathias Nyman <[email protected]>2022-06-10 14:53:38 +0300
committerGreg Kroah-Hartman <[email protected]>2022-06-10 13:57:20 +0200
commit802dcafc420af536fcde1b44ac51ca211f4ec673 (patch)
tree9a50af44f07f0296824a890f88c2a6c5ae10dd1c /scripts/gdb/linux/timerlist.py
parent8bd6b8c4b1009d7d2662138d6bdc6fe58a9274c5 (diff)
xhci: Fix null pointer dereference in resume if xhci has only one roothub
In the re-init path xhci_resume() passes 'hcd->primary_hcd' to hci_init(), however this field isn't initialized by __usb_create_hcd() for a HCD without secondary controller. xhci_resume() is called once per xHC device, not per hcd, so the extra checking for primary hcd can be removed. Fixes: e0fe986972f5 ("usb: host: xhci-plat: prepare operation w/o shared hcd") Reported-by: Matthias Kaehlcke <[email protected]> Tested-by: Matthias Kaehlcke <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions