Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Cezary Rojewski <cezary.rojewski@intel.com>
To: <arina.kharlamova@mbzuai.ac.ae>
Cc: <linux-sound@vger.kernel.org>, <stable@vger.kernel.org>,
	Liam Girdwood <liam.r.girdwood@linux.intel.com>,
	Peter Ujfalusi <peter.ujfalusi@linux.intel.com>,
	Bard Liao <yung-chuan.liao@linux.intel.com>,
	Kai Vehmanen <kai.vehmanen@linux.intel.com>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>,
	Mark Brown <broonie@kernel.org>,
	"Jaroslav Kysela" <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	bui duc phuc <phucduc.bui@gmail.com>
Subject: Re: [PATCH] ASoC: Intel: atom: Fix double unlock in sst_register_dsp()
Date: Mon, 30 Nov 2026 13:02:29 +0100	[thread overview]
Message-ID: <7bb2db5b-dc6f-4b49-aa19-b8508b6428d6@intel.com> (raw)
In-Reply-To: <20261129-s2p-c01-v1-1-12c1ed41896f@mbzuai.ac.ae>

On 11/29/2026 8:27 AM, Arina Kharlamova via B4 Relay wrote:
> From: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
> 
> Commit 71c0f725d35d ("ASoC: Intel: atom: Use guard() for locking")
> replaced the mutex_lock()/mutex_unlock() pair in sst_register_dsp()
> with guard(mutex), but left the explicit mutex_unlock() on the -EEXIST
> path. When a DSP is already registered, sst_lock is now released twice:
> once by hand and once when the guard goes out of scope.
> 
> Drop the explicit unlock and let the guard release the mutex.
> 
> Fixes: 71c0f725d35d ("ASoC: Intel: atom: Use guard() for locking")
> Cc: stable@vger.kernel.org
> Signed-off-by: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
Thank you for the fix.

Acked-by: Cezary Rojewski <cezary.rojewski@intel.com>

      reply	other threads:[~2026-11-30 12:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  7:27 [PATCH] ASoC: Intel: atom: Fix double unlock in sst_register_dsp() Arina Kharlamova via B4 Relay
2026-11-30 12:02 ` Cezary Rojewski [this message]

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=7bb2db5b-dc6f-4b49-aa19-b8508b6428d6@intel.com \
    --to=cezary.rojewski@intel.com \
    --cc=arina.kharlamova@mbzuai.ac.ae \
    --cc=broonie@kernel.org \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=peter.ujfalusi@linux.intel.com \
    --cc=phucduc.bui@gmail.com \
    --cc=pierre-louis.bossart@linux.dev \
    --cc=stable@vger.kernel.org \
    --cc=tiwai@suse.com \
    --cc=yung-chuan.liao@linux.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