linux/drivers/net/phy
Johan Hovold 47f873ac26 net: phy: fix memory leak in device-create error path
[ Upstream commit d02cbc4613 ]

A recent commit introduced a late error path in phy_device_create()
which fails to release the device name allocated by dev_set_name().

Fixes: 13d0ab6750 ("net: phy: check return code when requesting PHY driver module")
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-19 08:16:22 +02:00
..
Kconfig
Makefile
adin.c
amd.c
aquantia.h
aquantia_hwmon.c
aquantia_main.c net: phy: aquantia: add suspend / resume ops for AQR105 2020-01-04 19:18:45 +01:00
at803x.c
ax88796b.c
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm7xxx.c net: phy: bcm7xxx: define soft_reset for 40nm EPHY 2019-10-18 10:00:07 -07:00
bcm63xx.c net: phy: bcm63xx: fix OOPS due to missing driver name 2020-03-18 07:17:41 +01:00
bcm87xx.c
broadcom.c net: phy: broadcom: Fix RGMII delays configuration for BCM54210E 2020-01-26 10:01:01 +01:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83640.c net: dp83640: fix SIOCSHWTSTAMP to update the struct with actual configuration 2020-07-29 10:18:32 +02:00
dp83640_reg.h
dp83822.c
dp83848.c
dp83867.c net: phy: dp83867: w/a for fld detect threshold bootstrapping issue 2020-04-01 11:01:35 +02:00
et1011c.c
fixed_phy.c net: phy: fixed_phy: fix use-after-free when checking link GPIO 2020-02-24 08:36:43 +01:00
icplus.c
intel-xway.c
lxt.c
marvell.c net: marvell: Fix OF_MDIO config check 2020-06-24 17:50:40 +02:00
marvell10g.c
mdio-aspeed.c
mdio-bcm-iproc.c net: phy: restore mdio regs in the iproc mdio driver 2020-03-05 16:43:31 +01:00
mdio-bcm-unimac.c net: phy: mdio-bcm-unimac: Fix clock handling 2020-04-01 11:01:35 +02:00
mdio-bitbang.c
mdio-boardinfo.c
mdio-boardinfo.h
mdio-cavium.c
mdio-cavium.h
mdio-gpio.c
mdio-hisi-femac.c
mdio-i2c.c
mdio-i2c.h
mdio-moxart.c
mdio-mscc-miim.c
mdio-mux-bcm-iproc.c net: phy: mdio-mux-bcm-iproc: check clk_prepare_enable() return value 2020-04-01 11:01:35 +02:00
mdio-mux-gpio.c
mdio-mux-meson-g12a.c
mdio-mux-mmioreg.c
mdio-mux-multiplexer.c
mdio-mux.c
mdio-octeon.c
mdio-sun4i.c phy: mdio-sun4i: add missed regulator_disable in remove 2019-11-18 17:22:40 -08:00
mdio-thunder.c
mdio-xgene.c
mdio-xgene.h
mdio_bus.c mdio_bus: don't use managed reset-controller 2019-12-04 22:30:52 +01:00
mdio_device.c
meson-gxl.c
micrel.c net: phy: micrel: use genphy_read_status for KSZ9131 2020-04-21 09:04:46 +02:00
microchip.c
microchip_t1.c net: phy: microchip_t1: add lan87xx_phy_init to initialize the lan87xx phy. 2020-05-20 08:20:03 +02:00
mscc.c net: phy: mscc: fix firmware paths 2020-03-21 08:11:53 +01:00
national.c
nxp-tja11xx.c
phy-c45.c
phy-core.c
phy.c net: phy: fix aneg restart in phy_ethtool_set_eee 2020-05-20 08:20:09 +02:00
phy_device.c net: phy: fix memory leak in device-create error path 2020-08-19 08:16:22 +02:00
phy_led_triggers.c
phylink.c net: phylink: fix interface passed to mac_link_up 2020-01-04 19:19:17 +01:00
qsemi.c
realtek.c net: phy: realtek: fix handling of RTL8105e-integrated PHY 2020-04-13 10:48:01 +02:00
rockchip.c
sfp-bus.c net: sfp: add some quirks for GPON modules 2020-07-22 09:32:56 +02:00
sfp.c
sfp.h
smsc.c net: phy: smsc: LAN8740: add PHY_RST_AFTER_CLK_EN flag 2019-10-23 21:44:44 -07:00
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c