linux_dsm_epyc7002/drivers/usb/cdns3
Roger Quadros 0ff1f97510 usb: cdns3: fix NULL pointer dereference on no platform data
[ Upstream commit 448373d9db1a7000072f65103af19e20503f0c0c ]

Some platforms (e.g. TI) will not have any platform data which will
lead to NULL pointer dereference if we don't check for NULL pdata.

Fixes: 7cea9657756b ("usb: cdns3: add quirk for enable runtime pm by default")
Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-11 14:17:26 +01:00
..
cdns3-imx.c
cdns3-pci-wrap.c
cdns3-ti.c
core.c usb: cdns3: fix NULL pointer dereference on no platform data 2021-03-11 14:17:26 +01:00
core.h
debug.h
drd.c
drd.h
ep0.c
gadget-export.h
gadget.c
gadget.h
host-export.h
host.c usb: cdns3: fix NULL pointer dereference on no platform data 2021-03-11 14:17:26 +01:00
Kconfig
Makefile
trace.c
trace.h