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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D2304C43334 for ; Thu, 9 Jun 2022 14:20:36 +0000 (UTC) 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 EBE111B45; Thu, 9 Jun 2022 16:19:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz EBE111B45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1654784435; bh=cyI1slCYp2ulOMR6QOZVzna724c2/fZa6OlRtiC3eOI=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=epd6vct50ZQuMBtkEB9sm9Dow06UjST5C+fgdsAwPaWqZBgrzmJo60eMKQOQV6r7t HwBq2GiT6fyH9bkPVz02asGf4FSAThR8rq7yTHnlPq0ZzvIIDsjX9hf8FWR9osD/sq fKCpjGaWMOlj38ZqTv6Lsn6T7Crwtq0VFLjP6/gg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9B671F801F5; Thu, 9 Jun 2022 16:19:44 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 00545F804B4; Thu, 9 Jun 2022 16:19:42 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BB4DCF800C7 for ; Thu, 9 Jun 2022 16:19:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BB4DCF800C7 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rLpFv04+" Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6A71261DB0; Thu, 9 Jun 2022 14:19:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47E9FC34115; Thu, 9 Jun 2022 14:19:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654784378; bh=cyI1slCYp2ulOMR6QOZVzna724c2/fZa6OlRtiC3eOI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rLpFv04+W/H73neyOgVi1+ylHGerJnTn0IG0LBG1z7WX2oKgSLiwQS/b7lH1/Qvxc AsOZNraYR1mOj3wVECimweusPz7sE1X/vb04Sbp0NorGWoP8CyUBOXWp0iadNKczNC g57YLb1xumDT6HMAKIxuAyp5lWhv3XC6blcPB02+kkkjtPdd8kVUlMgIkmjZrWdT7N lRzvhwgza/LFiDBGPh1RTikIoHmWgQJz4rTKpn1qmLCGmFE1e3OKKJ8blk+3QkHHb0 AsD2yPUsGWHwvSMm4IkoNvbarRkYN435VlwsGLP2dKgeywtrartEbRQQfGJm8YtQ1Y sTVxXWYVQZqwg== Date: Thu, 9 Jun 2022 15:19:34 +0100 From: Mark Brown To: Amadeusz =?utf-8?B?U8WCYXdpxYRza2k=?= Subject: Re: [PATCH 10/11] ASoC: codecs: rt298: Fix NULL jack in interrupt Message-ID: References: <20220609133541.3984886-1-amadeuszx.slawinski@linux.intel.com> <20220609133541.3984886-11-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TFiQHeaAmuCof+XI" Content-Disposition: inline In-Reply-To: <20220609133541.3984886-11-amadeuszx.slawinski@linux.intel.com> X-Cookie: Space is limited. Cc: Oder Chiou , Pierre-Louis Bossart , Cezary Rojewski , alsa-devel@alsa-project.org, Takashi Iwai , Liam Girdwood 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" --TFiQHeaAmuCof+XI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 09, 2022 at 03:35:40PM +0200, Amadeusz S=C5=82awi=C5=84ski wrot= e: > Set rt298->jack to passed value in mic_detect, otherwise when jack is > set to NULL on next interrupt call, we may use freed pointer. This is an actual fix so should go towards the start of the series, putting fixes at the start of the series avoids them getting spurious dependencies. --TFiQHeaAmuCof+XI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmKiAXUACgkQJNaLcl1U h9CdaAf/XXohGR4D9bm6pp9MM8kxLUsXSzljiQc7ZZ2VyoVyxzP+UPpc4eeXulrJ GOGaZVfQFHV5IXOJ6oOT03gvzpeMWG/WZGRUHLvUD8py7cOTaGMvo7ueP67njOTr xLp6POq4STmYuTxE1R4fD0l0R3mzQQw/Qmi4X+5pvlbbpnpOxwbKjbrcYrjHU1hX K6+m2z6KNLQypgxUMHcjsfLvNajJ7GWgPQAMjf9lgbDxzo5nX4EssPSD7byr/boH offbl583Cx2FXkJkoHXPN0QYrsWnAt7UTPewTJW/Ro5ZRujN1CgikowwPF2oA/Ec venL7sqEbq2sz+5a1bCsM4dm56BEvQ== =ljpp -----END PGP SIGNATURE----- --TFiQHeaAmuCof+XI--