linux/drivers/phy/ti
Johan Hovold 66fcfceee2 phy: ti: gmii-sel: fix regmap leak on probe failure
commit 4914d67da9 upstream.

The mmio regmap that may be allocated during probe is never freed.

Switch to using the device managed allocator so that the regmap is
released on probe failures (e.g. probe deferral) and on driver unbind.

Fixes: 5ab90f4012 ("phy: ti: gmii-sel: Do not use syscon helper to build regmap")
Cc: stable@vger.kernel.org	# 6.14
Cc: Andrew Davis <afd@ti.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Andrew Davis <afd@ti.com>
Link: https://patch.msgid.link/20251127134834.2030-1-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-23 11:18:44 +01:00
..
Kconfig phy: ti: fix Kconfig warning and operator precedence 2023-01-11 13:24:33 +05:30
Makefile phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC 2020-01-14 10:50:19 +05:30
phy-am654-serdes.c phy: ti: am654-serdes: Use scoped device node handling to simplify error paths 2024-08-30 13:26:37 +05:30
phy-da8xx-usb.c phy: ti: da8xx-usb: Handle devm_pm_runtime_enable() errors 2026-01-23 11:18:41 +01:00
phy-dm816x-usb.c phy: Drop unnecessary of_match_device() calls 2023-10-13 15:47:53 +05:30
phy-gmii-sel.c phy: ti: gmii-sel: fix regmap leak on probe failure 2026-01-23 11:18:44 +01:00
phy-j721e-wiz.c phy: ti: phy-j721e-wiz: fix usxgmii configuration 2024-10-17 20:23:02 +05:30
phy-omap-control.c phy: Use device_get_match_data() 2023-10-13 15:45:40 +05:30
phy-omap-usb2.c phy: ti: omap-usb2: fix device leak at unbind 2025-09-19 16:35:51 +02:00
phy-ti-pipe3.c phy: ti-pipe3: fix device leak at unbind 2025-09-19 16:35:51 +02:00
phy-tusb1210.c power: supply: Change usb_types from an array into a bitmask 2024-09-03 23:20:28 +02:00
phy-twl4030-usb.c phy: drop probe registration printks 2026-01-23 11:18:41 +01:00