All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] tests/chamelium/audio: Fix resource leaks in audio tests
@ 2026-03-16 11:47 Mohammed Bilal
  2026-03-16 11:47 ` [PATCH v4 1/2] tests/chamelium/audio: Fix ALSA handle leak on skipped audio config Mohammed Bilal
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Mohammed Bilal @ 2026-03-16 11:47 UTC (permalink / raw)
  To: igt-dev; +Cc: jeevan.b, sebastian.brzezinka, Mohammed Bilal

This series fixes resource leaks in Chamelium audio tests.

It resolves a handle leak in the audio test loop when the audio
configuration check fails and the loop continues without cleanup.

It also ensures proper cleanup when assertion failures occur after
resources are acquired by routing error paths through a common
cleanup sequence. Exit early on first failure to avoid testing 
remaining combinations unnecessarily.

v2:
-Refactor check condition (Sebastien)

v3:
-Update assert logic (Jeevan)

v4:
-Fix memory leak logic and update commit message (Sebastien)

Mohammed Bilal (2):
  tests/chamelium/audio: Fix ALSA handle leak on skipped audio config
  tests/chamelium/audio: Fix resource leaks on assertion failure

 tests/chamelium/kms_chamelium_audio.c | 60 ++++++++++++++++++---------
 1 file changed, 40 insertions(+), 20 deletions(-)

-- 
2.48.1


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

end of thread, other threads:[~2026-03-25 11:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 11:47 [PATCH v4 0/2] tests/chamelium/audio: Fix resource leaks in audio tests Mohammed Bilal
2026-03-16 11:47 ` [PATCH v4 1/2] tests/chamelium/audio: Fix ALSA handle leak on skipped audio config Mohammed Bilal
2026-03-16 11:47 ` [PATCH v4 2/2] tests/chamelium/audio: Fix resource leaks on assertion failure Mohammed Bilal
2026-03-25 11:06   ` Sebastian Brzezinka
2026-03-17  9:59 ` ✓ Xe.CI.BAT: success for tests/chamelium/audio: Fix resource leaks in audio tests (rev4) Patchwork
2026-03-17 12:19 ` ✓ i915.CI.BAT: " Patchwork
2026-03-18 15:36 ` ✓ Xe.CI.FULL: " Patchwork
2026-03-24 11:51 ` ✓ Xe.CI.BAT: success for tests/chamelium/audio: Fix resource leaks in audio tests (rev5) Patchwork
2026-03-24 11:58 ` ✓ i915.CI.BAT: " Patchwork
2026-03-24 20:03 ` ✗ i915.CI.Full: failure " Patchwork
2026-03-24 22:38 ` ✓ Xe.CI.FULL: success " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.