From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A90ECC19F2D for ; Tue, 9 Aug 2022 07:12:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237781AbiHIHMt (ORCPT ); Tue, 9 Aug 2022 03:12:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229976AbiHIHMr (ORCPT ); Tue, 9 Aug 2022 03:12:47 -0400 Received: from hutie.ust.cz (unknown [IPv6:2a03:3b40:fe:f0::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6CF41F617; Tue, 9 Aug 2022 00:12:44 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1660029159; bh=cDApK5hmdG5/n12lVn89OuKR5PmgY/qsf/gyfBRzWuo=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=QtUiVtrSeVGFlOCcxuaC4OAl/+jssyZYOmznmpaVVGB9lXDf7lSTqjyVpaRhWT9Jg 9Rb79S3wkhZUnmTg9MctQmNkwB0P+FmsAARSKZXAG1KSbMga0CeFRucrwh9UYNOGnN aVCoXCc/KGfGY64/nni984A1WnO8cQMz6Z9DdgV4= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: [PATCH 3/3] ASoC: apple: mca: Add locks on foreign cluster access From: =?utf-8?Q?Martin_Povi=C5=A1er?= In-Reply-To: <20220808224153.3634-4-povik+lin@cutebit.org> Date: Tue, 9 Aug 2022 09:12:37 +0200 Cc: asahi@lists.linux.dev, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20220808224153.3634-1-povik+lin@cutebit.org> <20220808224153.3634-4-povik+lin@cutebit.org> To: =?utf-8?Q?Martin_Povi=C5=A1er?= , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai , Philipp Zabel Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -331,8 +339,10 @@ static int mca_be_prepare(struct = snd_pcm_substream *substream, > */ > if (!mca_fe_clocks_in_use(fe_cl)) { > ret =3D mca_fe_enable_clocks(fe_cl); > - if (ret < 0) > + if (ret < 0) { > + mutex_unlock(&mca->port_mutex); > return ret; > + } > } Stray unlock here -- Martin