lkml.org 
[lkml]   [2022]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/3] ASoC: apple: mca: Add locks on foreign cluster access
From
Date

> @@ -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

\
 
 \ /
  Last update: 2022-08-09 09:13    [W:0.133 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site