Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6535337imu; Mon, 21 Jan 2019 10:33:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN6QynQSwCtwC/KQaolc8sv8oE79qBUA0eRqnxhMtoqsv6Z55ur9k+MIVABfoHoPDC2AMUvu X-Received: by 2002:a63:f94c:: with SMTP id q12mr28578150pgk.91.1548095633734; Mon, 21 Jan 2019 10:33:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548095633; cv=none; d=google.com; s=arc-20160816; b=Mbi4rKeD05x1y5qmOwRMOINqXtq+4X9qt5l4536QIMI9rbNRmjQG9LBKWvkRfncv8I LrPPgsqlAHMzPYLC0cI9rzmxy7npaBvnmBjQ8A0TjhT2yC5ILH+Z9TLcuVQRduH88za/ yxjgVQBGKrBOQU8xLNSPXKHOX85qynu7XzzzjFIhZbNvFZUJjhRYkSHvwC7XL8j1vV7L tyGa7RpDazf9Du9dQY3q3a5wrqDYrhaTu1mMkzF1B7AS+gkHkM/QvRy+GFl0y1DV1Gr2 xN+hXw4vBLJJA2Nc6YFHPV3iXv2dE7DjQLnnQOlXSp5NWtHiSzxAIApw6jtqEH/Bg+88 f7Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oc6tFj0cTcSXtpaQF6GJTU6VeqQj6UUGji9ezfTrrN4=; b=xWwBDy9bVFFCCB4nDkiHUOFevgG15QnM1E8HWg3csFoa/8ZJtCTiFR0aE4Guuk1bKK 2N7VdROta3pxtuFwa+IDRbsJI0mDDEBJJXT41bHdRujzVdUQI8dXpJ9NrxyzL8jXXX/E GTq69r4yr4k+a7glH4EUNqtmivhbtsM6a4ppe5W8iJVtQ1kV7TRBvpxRzo4w8MlcYa9w yw6mkzdZs9TtvXb5rsU3WnwYzrGknX2gpsM7ieEKduzSkHEHla4A0pWGIeN5e7rdRuKg GJDVDLzJFV0lDu9SfpqIZ0yjicO+3+8d/R397r33PCE1+WCMOGo/dgvpfaSa/PjWRWP8 qIXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Hs6Xe2jP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4si308356pff.161.2019.01.21.10.33.36; Mon, 21 Jan 2019 10:33:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Hs6Xe2jP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727838AbfAUSbG (ORCPT + 99 others); Mon, 21 Jan 2019 13:31:06 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:38838 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbfAUSbG (ORCPT ); Mon, 21 Jan 2019 13:31:06 -0500 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=oc6tFj0cTcSXtpaQF6GJTU6VeqQj6UUGji9ezfTrrN4=; b=Hs6Xe2jPANCOyfaatPPEB2nEg 4EeCrNjq+rbz9YOkWkXR9jtUjutTslayS+8aPNRy53uUaol6mBgyYvHHSbmOgNydosFmDNrXbeDcO Rcb3OCmlopLVy44U3joYuZEp1+Zd+NP9q8aR3NDqxGeA+fQLJvQ+x+MK+w7C/sdcb1frI=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gleLX-0004wH-4U; Mon, 21 Jan 2019 18:30:55 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 7E8601127D00; Mon, 21 Jan 2019 18:30:54 +0000 (GMT) Date: Mon, 21 Jan 2019 18:30:54 +0000 From: Mark Brown To: Curtis Malainey Cc: Pierre-Louis Bossart , Matthias Reichl , rohkumar@qti.qualcomm.com, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, vinod.koul@linaro.org, lgirdwood@gmail.com, plai@codeaurora.org, linux-kernel@vger.kernel.org, tiwai@suse.com, Liam Girdwood , srinivas.kandagatla@linaro.org, Rohit kumar , asishb@codeaurora.org, Ajit Pandey , Curtis Malainey , Dylan Reid Subject: Re: [alsa-devel] [PATCH] ASoC: soc-core: Fix null pointer dereference in soc_find_component Message-ID: <20190121183054.GF12679@sirena.org.uk> References: <1547194442-1487-1-git-send-email-rohitkr@codeaurora.org> <4886ed21-65d2-159d-afcd-bb26dcde636e@linux.intel.com> <20190115000610.GM11073@sirena.org.uk> <796a856c-a9a6-022d-da63-947279090198@linux.intel.com> <20190115211137.rhdyjadu7fppp3p4@lenny.lan> <044d59ba-094e-727d-14a9-6ebfc54cbbf4@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2FkSFaIQeDFoAt0B" Content-Disposition: inline In-Reply-To: X-Cookie: Body by Nautilus, Brain by Mattel. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --2FkSFaIQeDFoAt0B Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jan 18, 2019 at 05:15:32PM -0800, Curtis Malainey wrote: > of_node was never getting set but the pointer was becoming populated > (outside of the probe call) which traced to soc_init_platform function > which was not reallocating memory on a EPROBE_DEFER even though it was > getting freed by devm. I am not very familiar with devm but my local > maintainers say that it should be freeing the memory even on a > PROBE_DEFER. Probe deferral is just like any other error from probe, any managed resources will be unwound. --2FkSFaIQeDFoAt0B Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlxGD90ACgkQJNaLcl1U h9CQEQgAgXbxteN3z6JWdvRNOR7LQ1qLbzwzKj6Q5fr9jXKIZaQLPq+1djnb/KFr v4sITiJopyN0eDbQlmQUis5b0wT1jmOzpNsZfr5te78rYSLZmbd7Icf5/TmIhfMf 6zW4+BLvdFAzTC1ZZoqoX9XvEGfPZVgIS1tJNBQTyx4r4+L76FRis9aWKYnU3FqT 3JvCmZUNg8lhwH5uKN2FOhU1AcTRKFJl5v7YqyzXHOAe6bVRDi/yZYxcETeasUxM EccYffjtpjxHl3cflJHgT8ZCpYvkNl4Ieg6Gs6In9+quP/FUM9dk4wubsS0gzVeK yz5IV2nrxgQUkecgJoxR2iESaMBHyw== =thEi -----END PGP SIGNATURE----- --2FkSFaIQeDFoAt0B--