Re: [PATCH 3/3] ASoC: apple: mca: Add locks on foreign cluster access

From: Martin Povišer
Date: Tue Aug 09 2022 - 03:12:51 EST



> @@ -331,8 +339,10 @@ static int mca_be_prepare(struct snd_pcm_substream *substream,
> */
> if (!mca_fe_clocks_in_use(fe_cl)) {
> ret = mca_fe_enable_clocks(fe_cl);
> - if (ret < 0)
> + if (ret < 0) {
> + mutex_unlock(&mca->port_mutex);
> return ret;
> + }
> }

Stray unlock here

--
Martin