]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: ti: k3-socinfo: Fix regmap leak on probe failure
authorJohan Hovold <johan@kernel.org>
Thu, 27 Nov 2025 13:49:42 +0000 (14:49 +0100)
committerNishanth Menon <nm@ti.com>
Wed, 14 Jan 2026 16:58:48 +0000 (10:58 -0600)
commitc933138d45176780fabbbe7da263e04d5b3e525d
treea388a6369bb4aacdd18532e606e74d41abaa8f32
parent3fec51b89d603f2d8ebf50f815b5e159efc381da
soc: ti: k3-socinfo: Fix regmap leak on probe failure

The mmio regmap 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: a5caf03188e4 ("soc: ti: k3-socinfo: Do not use syscon helper to build regmap")
Cc: stable@vger.kernel.org # 6.15
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/20251127134942.2121-1-johan@kernel.org
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/soc/ti/k3-socinfo.c