]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: sti: use managed regmap_field allocations
authorSander Vanheule <sander@svanheule.net>
Fri, 20 Feb 2026 15:26:34 +0000 (16:26 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 1 Mar 2026 23:48:23 +0000 (23:48 +0000)
commit1696fad8b259a2d46e51cd6e17e4bcdbe02279fa
treedc6ac39905dc915d6d30689e989d7d3c7d446183
parent272aabef50bc3fe58edd26de000f4cdd41bdbe60
ASoC: sti: use managed regmap_field allocations

The regmap_field objects allocated at player init are never freed and
may leak resources if the driver is removed.

Switch to devm_regmap_field_alloc() to automatically limit the lifetime
of the allocations the lifetime of the device.

Fixes: 76c2145ded6b ("ASoC: sti: Add CPU DAI driver for playback")
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Link: https://patch.msgid.link/20260220152634.480766-3-sander@svanheule.net
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sti/uniperif_player.c