Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92A5BCA9EB5 for ; Mon, 4 Nov 2019 13:18:57 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8B64A21D7D for ; Mon, 4 Nov 2019 13:18:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="rx0Xf5R9"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sirena.org.uk header.i=@sirena.org.uk header.b="E+A8tBtY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B64A21D7D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 31B8916ED; Mon, 4 Nov 2019 14:18:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 31B8916ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1572873534; bh=y9zOnSF5s1PCPVL+h1ZmiokR9VPxqdTbQEpuEtZpjVk=; h=Date:From:To:References:In-Reply-To:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=rx0Xf5R9wq4NBuYL5V0PoANagRu7mVvjRQVPhWgnBw1TFE0x68hwMHZhToU7H4xfV YXELFrkNJTiQyQXOulJ0fNmwV6+FjdSDwfZYjmuFL5f5rgV10mDeP5epLxhRuHCxPq KRZgzE6uMAYJ3kw2vWvZIvmF+4aRVWhVCRIDmlWQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id AC772F80321; Mon, 4 Nov 2019 14:18:03 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9286FF803F4; Mon, 4 Nov 2019 14:18:01 +0100 (CET) Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1D61EF800F3 for ; Mon, 4 Nov 2019 14:17:58 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1D61EF800F3 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=sirena.org.uk header.i=@sirena.org.uk header.b="E+A8tBtY" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=G29USFBmM3180VuiOU2pSuWE669LfYFv5PyMKEGxt8w=; b=E+A8tBtYKfr1YmgqPQNuduk5J 9rubdrkyRoy3lL4JlmyKjEK9HgU10zU8FahTZGhwNb+95jcjq0axo/6a6j9cvZDIDz6cgAS0jtSxP XyDYTLRA1+PCt+qWze8/m9Nbvr1lb7ECKTSlibO6xp+RKpntUK2xeADduQ7BPRF744wyI=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iRcF1-0002cj-Cx; Mon, 04 Nov 2019 13:17:55 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 97F84274301E; Mon, 4 Nov 2019 13:17:54 +0000 (GMT) Date: Mon, 4 Nov 2019 13:17:54 +0000 From: Mark Brown To: Daniel Baluta Message-ID: <20191104131754.GE5238@sirena.co.uk> References: <1572628130-16955-1-git-send-email-yong.zhi@intel.com> <5a2369b1804db60da9ee10d4a2fa0688ff9f1222.camel@nxp.com> MIME-Version: 1.0 In-Reply-To: <5a2369b1804db60da9ee10d4a2fa0688ff9f1222.camel@nxp.com> X-Cookie: This page intentionally left blank. User-Agent: Mutt/1.10.1 (2018-07-13) Cc: "sathyanarayana.nujella@intel.com" , "alsa-devel@alsa-project.org" , "pierre-louis.bossart@linux.intel.com" , "ryans.lee@maximintegrated.com" , "yong.zhi@intel.com" Subject: Re: [alsa-devel] [PATCH] ASoC: max98373: Fix calls to free_gpio() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5009941405390326684==" Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" --===============5009941405390326684== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MIdTMoZhcV1D07fI" Content-Disposition: inline --MIdTMoZhcV1D07fI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 04, 2019 at 01:03:38PM +0000, Daniel Baluta wrote: > On Fri, 2019-11-01 at 12:08 -0500, Yong Zhi wrote: > > Don't Call free_gpio() when request_gpio() fails, call it > > at error paths to avoid resource leak. > Uosing devm_gpio_request will make the change cleaner. > What do you think? Yes, that's even better. --MIdTMoZhcV1D07fI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl3AJQEACgkQJNaLcl1U h9A0gQgAhh8boJ4hEgpkiKn/+2UcD9IF03h+oz3c2ObO0p1ZYAlkFIzWYQ/RbX5E 7rMVuzt3NyOz5S6Zkm82R0q0T4b4dpCf9hB+7mYgw3f1CCkcvVBlqQlUeVWAy6I1 1crC6lwtRVwbAsFFRVW23IuXuEIbNDxbUw9X8ZQghrV2h7RaHRuctMXboQ1ai9CT GAVRsYneTn5AiPpqt09u1T4f5KBS6Iaawq5hyhrfu4WXXGN1cDAmf2cBgRcJjRtW 27w38Rg/rRAdPpyAJk3jBic9xjkSJrTQ8y7qKS3ZdNLS4A8zFNi7Q/kOyGTII65W S0p/7JXY58ttJMCNnpOqkFBznYPNPw== =XCZB -----END PGP SIGNATURE----- --MIdTMoZhcV1D07fI-- --===============5009941405390326684== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel --===============5009941405390326684==--