From: Arina Kharlamova 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 --- Found by checks derived from the spec2patch kernel API specifications, with the help of an AI coding assistant (Claude); I reviewed the analysis and the fix. --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c index 8c0e4c1d0c0c..bbd43d1b5bfa 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c @@ -37,7 +37,6 @@ int sst_register_dsp(struct sst_device *dev) if (sst) { dev_err(dev->dev, "we already have a device %s\n", sst->name); module_put(dev->dev->driver->owner); - mutex_unlock(&sst_lock); return -EEXIST; } dev_dbg(dev->dev, "registering device %s\n", dev->name); --- base-commit: 25faec9ce61c01fb45abf812a222c5b43c3cd5c5 change-id: 20261129-s2p-c01-aced22f2c550 Best regards, -- Arina Kharlamova