mbox series

[0/2] USB: dwc3: qcom: fix NULL-deref on suspend

Message ID 20230607100540.31045-1-johan+linaro@kernel.org (mailing list archive)
Headers show
Series USB: dwc3: qcom: fix NULL-deref on suspend | expand

Message

Johan Hovold June 7, 2023, 10:05 a.m. UTC
Some dwc3 glue drivers are currently accessing the driver data of the
child core device directly, which is clearly a bad idea as the child may
not have probed yet or may have been unbound from its driver.

This series fixes some of the symptoms of these layering violations as
fixing the glue drivers properly is going to take a fair bit of work.

Johan


Johan Hovold (2):
  USB: dwc3: qcom: fix NULL-deref on suspend
  USB: dwc3: fix use-after-free on core driver unbind

 drivers/usb/dwc3/core.c      |  5 +++++
 drivers/usb/dwc3/dwc3-qcom.c | 11 ++++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)