linux/drivers/phy
Sergei Shtylyov 743bb387a1 phy: fix kernel oops in phy_lookup()
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>
2014-04-24 12:53:38 -07:00
..
Kconfig
Makefile
phy-bcm-kona-usb2.c
phy-core.c phy: fix kernel oops in phy_lookup() 2014-04-24 12:53:38 -07:00
phy-exynos-dp-video.c
phy-exynos-mipi-video.c
phy-exynos4x12-usb2.c
phy-exynos4210-usb2.c
phy-exynos5250-sata.c
phy-exynos5250-usb2.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