kernel-hacking-2024-linux-s.../drivers/usb/dwc3
Felipe Balbi 43cacb03aa usb: dwc3: core: avoid NULL pointer dereference
commit 3e10a2ce98 ("usb: dwc3: add hsphy_interface
property") introduced a possible NULL pointer
dereference because dwc->hsphy_interface can be
NULL.

In order to fix it, all we have to do is guard
strncmp() against a NULL argument.

Fixes: 3e10a2ce98 ("usb: dwc3: add hsphy_interface property")
Tested-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-07-06 12:34:08 -05:00
..
core.c usb: dwc3: core: avoid NULL pointer dereference 2015-07-06 12:34:08 -05:00
core.h Merge 4.1-rc7 into usb-next 2015-06-08 10:57:51 -07:00
debug.c
debug.h
debugfs.c
dwc3-exynos.c
dwc3-keystone.c
dwc3-omap.c usb: dwc3: dwc3-omap: correct the register macros 2015-04-27 14:36:52 -05:00
dwc3-pci.c usb: dwc3: pci: add quirk for Baytrails 2015-05-13 12:06:47 -05:00
dwc3-qcom.c
dwc3-st.c
ep0.c
gadget.c usb: dwc3: gadget: don't clear EP_BUSY too early 2015-05-29 10:19:51 -05:00
gadget.h
host.c usb: dwc3: make LPM configurable in DT 2015-03-10 15:33:33 -05:00
io.h
Kconfig usb: dwc3: Use ASCII space in Kconfig 2015-06-12 17:42:31 -07:00
Makefile usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00
platform_data.h usb: dwc3: add hsphy_interface property 2015-05-13 12:06:42 -05:00
trace.c
trace.h
ulpi.c usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00