Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp706906imu; Wed, 16 Jan 2019 06:21:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN7dC8hBVjC6cIgG4cWLtT3OhYhV1T/0iPJWM/zxmn1a6mouYnTbAWAlw4WNULlAPFz+h8Ha X-Received: by 2002:a63:6c48:: with SMTP id h69mr8723484pgc.139.1547648493058; Wed, 16 Jan 2019 06:21:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547648493; cv=none; d=google.com; s=arc-20160816; b=qe1FSmaYp0XW/q4blXfFvSqoRV6dy45zION9UzYdquOuwgnxF7gdxVl/IFZyJd+GBA c/1ojYHYTBQuE0jIZ0VqxMrKhJgAbzb6EM4aXR18NF1+5/dZZgQuFS3WVHf6jKMPXilA /49yvyVY+h3yjctKNJ6WMCVBmCeYF19gFzfOGED281HOcCi91YwGFbomNp+OWx7gpIQy TkeuiHqyZoNOwqvD/5wRe52E2otl7e9YTEVvuc1c64CZBdphX8QxdQBybWKml4I/L39S JPLW7WNvyW3B5Oo25JYWAI5+ZObMsH2IsxkWC8sM5YMDZr+A2aNvFUykG+0FAA+FXQr3 XKTA== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=OxksLVlLTnfRNtyihoUBx070FU8FZN8M+aNl8mptglU=; b=B6iiFgiUKsRP7AC6jQ/efxnyAwq9TGGyJDq6Xans141Sd06BKlnPL0NqU/llE2RUc+ Il0BzFjbs/E6vXCjKndYJrFjhnZMjLJQ0dGAodenNQhJquzM7yj9Tk5QpEsbd2+f5lpV Qr4YJsIERfdOFjpbnVP4pA3n7H0FYkwQ2RPoWQQtWcEp608DqwMuwIJjDlDTZ6K9GGeT ovFHTKo9C9l5eB4zDSl8FsPw7iYt1FwlIaeePpHCT4HuzBS7k2GqtjOHWKP3Y8/xcZVV rlbSJ4mgL3rE9f+G+TKSs9g2rVQT+4Vuy+fYXBllpw7nHQh6Jescc1P2n/KsD+mMaiBj XkDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@horus.com header.s=20180324 header.b="uL/yHC/L"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=horus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i16si5547050pgk.445.2019.01.16.06.21.16; Wed, 16 Jan 2019 06:21:33 -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=pass header.i=@horus.com header.s=20180324 header.b="uL/yHC/L"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=horus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390699AbfAOVsL (ORCPT + 99 others); Tue, 15 Jan 2019 16:48:11 -0500 Received: from mail.horus.com ([78.46.148.228]:43011 "EHLO mail.horus.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728421AbfAOVsK (ORCPT ); Tue, 15 Jan 2019 16:48:10 -0500 Received: from lenny.lan (62-47-205-132.adsl.highway.telekom.at [62.47.205.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "E-Mail Matthias Reichl Lenny", Issuer "HiassofT CA 2014" (verified OK)) by mail.horus.com (Postfix) with ESMTPSA id 974A664138; Tue, 15 Jan 2019 22:48:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=horus.com; s=20180324; t=1547588888; bh=OxksLVlLTnfRNtyihoUBx070FU8FZN8M+aNl8mptglU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uL/yHC/L3wKgOnDXnAxwlBJvOYoz+dc7e6jEimVh+MWUyXFYan7VkpPQ3BtnHRhwV YDRDXJn79a15alXGf9RzkizPjsf0Hoc60LVd4u6HtVaas6m+NZJ+KGoVeAXs2gHR1i tDG/Pbe4KeZRGxJFzWr5/EA3klBxhOIVLu3SVgc0= Received: by lenny.lan (Postfix, from userid 1000) id EED2A100063; Tue, 15 Jan 2019 22:48:07 +0100 (CET) Date: Tue, 15 Jan 2019 22:48:07 +0100 From: Matthias Reichl To: Mark Brown Cc: Pierre-Louis Bossart , 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 Subject: Re: [alsa-devel] [PATCH] ASoC: soc-core: Fix null pointer dereference in soc_find_component Message-ID: <20190115214807.vhzxuuf33b4nnkoo@lenny.lan> Mail-Followup-To: Matthias Reichl , Mark Brown , Pierre-Louis Bossart , 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 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> <20190115214138.GL5522@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190115214138.GL5522@sirena.org.uk> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 15, 2019 at 09:41:38PM +0000, Mark Brown wrote: > On Tue, Jan 15, 2019 at 03:16:57PM -0600, Pierre-Louis Bossart wrote: > > > > Maybe the defer card probe logic needs to be extended to also check if > > > dai_link_name had already been registered (either cpu or cpu_dai_name > > > needs to be set), not 100% sure which problem the defer card probe patch > > > was trying to solve. > > We were getting cards probing without the platforms being registered > (which in turn meant we were just skipping their init) and had patches > proposed to implement the deferral in the cards. The deferral stuff is > supposed to making sure that everything is registered when we > instantiate. Ah, that makes sense. Thanks a lot for the info! so long, Hias > > > same here, I don't get why the deferred probe stuff only deals with one of > > the two options. > > I think it's just an oversight - I think the change you were proposing > to check the cpu_dai_name is a good idea anyway as it makes things more > consistent and work more obviously by intention. And more generally if > we can simplify the code by removing legacy options that'd be good but > that's a bigger bit of work...