u-boot/drivers/net/phy
Heinrich Schuchardt ebb8ff61ad net: phy: possible NULL dereference in fixed_phy_create()
We check if phydev is NULL. Only but if it is non-NULL we set one
component of phydev. But even if it is NULL we set another. We should not
dereference NULL in either case.

Fixes: e24b58f5ed ("net: phy: don't require PHY interface mode during PHY creation")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Marek Behún <kabel@kernel.org>
2022-08-08 11:37:57 -04:00
..
adin.c phy: adin: add support for clock output 2022-06-14 21:25:26 +02:00
aquantia.c treewide: Rename PHY_INTERFACE_MODE_COUNT to PHY_INTERFACE_MODE_MAX 2022-04-10 08:44:13 +03:00
atheros.c net: phy: atheros: avoid error in ar803x_of_init() when PHY has no OF node 2022-04-10 08:44:12 +03:00
b53.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
broadcom.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ca_phy.c net: phy: ca_phy: Add driver for CAxxxx SoCs 2021-01-27 10:47:47 -05:00
cortina.c Convert CONFIG_ENV_SPI_BUS et al to Kconfig 2021-12-27 08:40:33 -05:00
davicom.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
dp83867.c net: phy: dp83867: Fix a never true comparison 2022-04-10 08:44:12 +03:00
dp83869.c net: phy: add TI DP83869HM ethernet driver 2022-01-15 18:50:16 +02:00
et1011c.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ethernet_id.c Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net 2022-04-15 08:10:32 -04:00
fixed.c net: phy: fixed: Support the old DT binding 2021-04-15 14:22:17 +05:30
generic_10g.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
Kconfig Convert CONFIG_FSL_MEMAC et al to Kconfig 2022-08-04 16:18:48 -04:00
lxt.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
Makefile Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net 2022-04-15 08:10:32 -04:00
marvell.c net: phy: marvell: Add support for 88E1240 PHY 2022-08-08 10:50:20 -04:00
meson-gxl.c WS cleanup: remove trailing white space 2021-09-30 08:08:56 -04:00
micrel_ksz8xxx.c net: phy: micrel: ksz8061 implement errata 80000688A fix 2020-06-12 13:17:23 -04:00
micrel_ksz90x1.c net: phy: micrel: Try default PHY ofnode first 2021-01-27 10:47:54 -05:00
miiphybb.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mscc.c net: phy: mscc: add support for VSC8502 in dual RGMII mode 2021-11-23 09:57:55 +02:00
mv88e61xx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mv88e6352.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
natsemi.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
ncsi.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
nxp-c45-tja11xx.c phy: nxp-c45-tja11xx: Rename functions to be c45 tja11xx specific 2022-04-12 19:10:44 +02:00
nxp-tja11xx.c net: phy: nxp-tja11xx: Add NXP TJA11xx PHY driver 2022-04-12 19:10:44 +02:00
phy.c net: phy: possible NULL dereference in fixed_phy_create() 2022-08-08 11:37:57 -04:00
realtek.c net: phy: realtek: Add tx/rx delay config for 8211e 2021-11-23 09:57:56 +02:00
smsc.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
teranetics.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ti_phy_init.c net: phy: add TI DP83869HM ethernet driver 2022-01-15 18:50:16 +02:00
ti_phy_init.h net: phy: add TI DP83869HM ethernet driver 2022-01-15 18:50:16 +02:00
vitesse.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
xilinx_gmii2rgmii.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
xilinx_phy.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00