Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/6] ASoC: fix error and remove paths in several drivers
@ 2026-12-01 19:23 Arina Kharlamova via B4 Relay
  2026-12-01 19:23 ` [PATCH 1/6] ASoC: bcm: bcm63xx-pcm-whistler: Fix dma_desc leak and double free Arina Kharlamova via B4 Relay
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Arina Kharlamova via B4 Relay @ 2026-12-01 19:23 UTC (permalink / raw)
  To: Mark Brown, Jaroslav Kysela, Takashi Iwai, Frank Li, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Shawn Guo, Heiko Stuebner,
	Sugar Zhang, Thierry Reding, Jonathan Hunter, Sameer Pujar,
	Liam Girdwood
  Cc: linux-sound, patches, imx, linux-arm-kernel, linux-rockchip,
	linux-tegra, Wentao Liang, Arina Kharlamova

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@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@mbzuai.ac.ae>



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-12-02 17:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:23 [PATCH 0/6] ASoC: fix error and remove paths in several drivers Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` [PATCH 1/6] ASoC: bcm: bcm63xx-pcm-whistler: Fix dma_desc leak and double free Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` [PATCH 2/6] ASoC: wm8903: Use devm_gpiochip_add_data() to add the GPIO chip Arina Kharlamova via B4 Relay
2026-12-02 17:42   ` Charles Keepax
2026-12-01 19:23 ` [PATCH 3/6] ASoC: wm8903: Free the IRQ when component registration fails Arina Kharlamova via B4 Relay
2026-12-02 17:44   ` Charles Keepax
2026-12-01 19:23 ` [PATCH 4/6] ASoC: mxs-saif: Use devm helpers to register mclk Arina Kharlamova via B4 Relay
2026-12-01 19:32   ` sashiko-bot
2026-12-01 19:23 ` [PATCH 5/6] ASoC: rockchip: rockchip_pdm: Fix unbalanced clk disable in remove Arina Kharlamova via B4 Relay
2026-12-01 19:23 ` [PATCH 6/6] ASoC: tegra: tegra210_ahub: Depopulate child devices on remove Arina Kharlamova via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox