mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 08:06:49 +07:00
743bb387a1
The kernel oopses in phy_lookup() due to 'phy->init_data' being NULL if we register PHYs from a device tree probing driver and then call phy_get() on a device that has no representation in the device tree (e.g. a PCI device). Checking the pointer before dereferening it and skipping an interation if it's NULL prevents this kernel oops. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
phy-bcm-kona-usb2.c | ||
phy-core.c | ||
phy-exynos4x12-usb2.c | ||
phy-exynos4210-usb2.c | ||
phy-exynos5250-sata.c | ||
phy-exynos5250-usb2.c | ||
phy-exynos-dp-video.c | ||
phy-exynos-mipi-video.c | ||
phy-mvebu-sata.c | ||
phy-omap-control.c | ||
phy-omap-usb2.c | ||
phy-samsung-usb2.c | ||
phy-samsung-usb2.h | ||
phy-sun4i-usb.c | ||
phy-ti-pipe3.c | ||
phy-twl4030-usb.c | ||
phy-xgene.c |