public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Mohammed Bilal <mohammed.bilal@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jeevan.b@intel.com, sebastian.brzezinka@intel.com,
	Mohammed Bilal <mohammed.bilal@intel.com>
Subject: [PATCH v2 0/2] tests/chamelium/audio: Fix resource leaks in audio tests
Date: Thu,  5 Mar 2026 15:00:23 +0530	[thread overview]
Message-ID: <20260305093025.3107101-1-mohammed.bilal@intel.com> (raw)

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.

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 | 46 ++++++++++++++++++---------
 1 file changed, 31 insertions(+), 15 deletions(-)

-- 
2.48.1


             reply	other threads:[~2026-03-05  9:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-05  9:30 Mohammed Bilal [this message]
2026-03-05  9:30 ` [PATCH v2 1/2] tests/chamelium/audio: Fix ALSA handle leak on skipped audio config Mohammed Bilal
2026-03-09  9:07   ` B, Jeevan
2026-03-05  9:30 ` [PATCH v2 2/2] tests/chamelium/audio: Fix resource leaks on assertion failure Mohammed Bilal
2026-03-09  9:23   ` B, Jeevan
2026-03-09  9:49     ` Bilal, Mohammed
2026-03-10  4:43       ` B, Jeevan
2026-03-10  7:34         ` Bilal, Mohammed
2026-03-10  8:34         ` Bilal, Mohammed
2026-03-05 20:37 ` ✓ Xe.CI.BAT: success for tests/chamelium/audio: Fix resource leaks in audio tests (rev2) Patchwork
2026-03-05 20:52 ` ✓ i915.CI.BAT: " Patchwork
2026-03-06 12:03 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-03-07  0:14 ` ✗ i915.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260305093025.3107101-1-mohammed.bilal@intel.com \
    --to=mohammed.bilal@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeevan.b@intel.com \
    --cc=sebastian.brzezinka@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox