aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorGravatar Mathias Nyman <mathias.nyman@linux.intel.com> 2022-06-10 14:53:38 +0300
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2022-06-10 13:57:20 +0200
commit802dcafc420af536fcde1b44ac51ca211f4ec673 (patch)
tree9a50af44f07f0296824a890f88c2a6c5ae10dd1c /drivers/usb/gadget
parentUSB: fixup for merge issue with "usb: dwc3: Don't switch OTG -> peripheral if... (diff)
downloadlinux-802dcafc420af536fcde1b44ac51ca211f4ec673.tar.gz
linux-802dcafc420af536fcde1b44ac51ca211f4ec673.tar.bz2
linux-802dcafc420af536fcde1b44ac51ca211f4ec673.zip
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 <mka@chromium.org> Tested-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20220610115338.863152-2-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget')
0 files changed, 0 insertions, 0 deletions