[PATCH 0/6] ASoC: fix error and remove paths in several drivers

Arina Kharlamova via B4 Relay devnull+arina.kharlamova.mbzuai.ac.ae at kernel.org
Tue Dec 1 11:23:31 PST 2026


Fixes for resources that are freed twice, left registered or not
released on probe failure and unbind, in bcm63xx-pcm-whistler,
wm8903, mxs-saif, rockchip_pdm and tegra210_ahub.

I found this with spec2patch. I model-checked the probe and remove paths
of the driver with CBMC against formal specifications of the kernel APIs
it calls. The specifications are checked against the kernel source, and
some of them are proved in Rocq against a transcription of the kernel
code. I also checked lock usage separately. With the help of an AI
coding assistant (Claude); I reviewed the analysis and the fix.
Compile-tested only, not tested on hardware.

The mxs-saif patch also covers the error path fixed by Wentao
Liang's patch; only one of the two is needed:
https://lore.kernel.org/all/20261104024048.1508618-1-vulab@iscas.ac.cn/

To: Liam Girdwood <lgirdwood at gmail.com>

---
Arina Kharlamova (6):
      ASoC: bcm: bcm63xx-pcm-whistler: Fix dma_desc leak and double free
      ASoC: wm8903: Use devm_gpiochip_add_data() to add the GPIO chip
      ASoC: wm8903: Free the IRQ when component registration fails
      ASoC: mxs-saif: Use devm helpers to register mclk
      ASoC: rockchip: rockchip_pdm: Fix unbalanced clk disable in remove
      ASoC: tegra: tegra210_ahub: Depopulate child devices on remove

 sound/soc/bcm/bcm63xx-pcm-whistler.c |  5 +++++
 sound/soc/codecs/wm8903.c            | 17 +++++------------
 sound/soc/mxs/mxs-saif.c             | 21 ++++++++++-----------
 sound/soc/rockchip/rockchip_pdm.c    |  1 -
 sound/soc/tegra/tegra210_ahub.c      |  1 +
 5 files changed, 21 insertions(+), 24 deletions(-)
---
base-commit: 20ee6031645dbed8ddf8f4833edf415f3760607f
change-id: 20261201-s2p-asoc-misc-3c5eeb91dc7a

Best regards,
--  
Arina Kharlamova <arina.kharlamova at mbzuai.ac.ae>





More information about the Linux-rockchip mailing list