u-boot/drivers/phy
Vignesh Raghavendra 64b69f8c89 phy: Fix possible NULL pointer deference
It is possible that users of generic_phy_*() APIs may pass a valid
struct phy pointer but phy->dev can be NULL, leading to NULL pointer
deference in phy_dev_ops().

So call generic_phy_valid() to verify that phy and phy->dev are both
valid.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2020-05-25 11:54:53 -04:00
..
allwinner common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
marvell common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
bcm6318-usbh-phy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bcm6348-usbh-phy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bcm6358-usbh-phy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bcm6368-usbh-phy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Kconfig phy: meson: add GXBB PHY driver 2020-04-28 10:23:10 +02:00
keystone-usb-phy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Makefile phy: meson: add GXBB PHY driver 2020-04-28 10:23:10 +02:00
meson-g12a-usb2.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
meson-g12a-usb3-pcie.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
meson-gxbb-usb2.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
meson-gxl-usb2.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
meson-gxl-usb3.c phy: meson-gxl-usb: add set_mode call to force switch to peripheral mode 2020-04-20 14:19:10 +02:00
msm8916-usbh-phy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mt76x8-usb-phy.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
nop-phy.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
omap-usb2-phy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
phy-da8xx-usb.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
phy-mtk-tphy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
phy-rcar-gen2.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
phy-rcar-gen3.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
phy-stm32-usbphyc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
phy-ti-am654.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
phy-uclass.c phy: Fix possible NULL pointer deference 2020-05-25 11:54:53 -04:00
sandbox-phy.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sti_usb_phy.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ti-pipe3-phy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00