Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp636272imu; Wed, 16 Jan 2019 05:12:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN6c0YJmKsUhVqyYMwhSzvUXgiAACqxzUkbsd2GhoEBxRlNlfYkntZUsD8FhykcCiqe90V4L X-Received: by 2002:a17:902:a60f:: with SMTP id u15mr9388086plq.275.1547644370991; Wed, 16 Jan 2019 05:12:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547644370; cv=none; d=google.com; s=arc-20160816; b=jdEZFdRSo/QtrijffBqvJNpC6ae3eZPcpvXhH9Rf30kBqN74YMU3bOqUjavgp9eyJT a8SLAyRaNhGdpWIinIOq3FBtS+WjBcuzVr0VeIgWqq7dPxz16crnCPC4ZO2UgOeXUXlf NeQOXoPclZnf3t+MNj1CZW6UHC7x4e9gmeJ+rYd0tXKKU5UHbJ+JDIZ0HMN7xCU9CVyS LF0p7rtdF8IpuVJS33agt2JqEJYU7tTmMNmcOJly765/f6bS+3kP3K3LAFz1sjBVTZE0 gXNhikPPr6FZIgS4k60izbllsvazENADzfx88xEUrULQtet8QBV9NSG7cJN2Gv2rCLGc SdRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=LJhEajZSDvjPs+tyvzWZdbGLS6X524FyDTjm5KPxIhs=; b=yF/2b6AiCdHoaO7U4YbInjJPovjuK7Vhpjk1QwN4TzIeNpNSqh1jJK2noYWH815C66 gTsweKmFLz+IQIXZIg0xMtUUjWnXLXjMFRVjMwpwlZzFxwrmOAiWz5h+2RyXBbktM2Tm zLjIzptuXaQu8djI0FvDn/poooyyHplJEocFI4Pr6d9SGtMG27p2Cb9OFCzOJKYxLsZm STPQjT351TZtxBVbpNlGYYk48vusS7fVT4YMEy9K3tlERAL8s6RGmzo5KFm1sidM++XC hJzDRwiPyDeMpwiCqTD16i34g4+rT3ZTfHYa2c9+EzVfDiR2tSZvmMVN3tC39tq3yqOn Z80A== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a90si6247609plc.314.2019.01.16.05.12.19; Wed, 16 Jan 2019 05:12:50 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390325AbfAOVQ7 (ORCPT + 99 others); Tue, 15 Jan 2019 16:16:59 -0500 Received: from mga14.intel.com ([192.55.52.115]:30617 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730655AbfAOVQ7 (ORCPT ); Tue, 15 Jan 2019 16:16:59 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2019 13:16:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,483,1539673200"; d="scan'208";a="126150815" Received: from linayu-mobl.amr.corp.intel.com (HELO [10.252.197.109]) ([10.252.197.109]) by FMSMGA003.fm.intel.com with ESMTP; 15 Jan 2019 13:16:57 -0800 Subject: Re: [alsa-devel] [PATCH] ASoC: soc-core: Fix null pointer dereference in soc_find_component To: Matthias Reichl , Mark Brown , 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> From: Pierre-Louis Bossart Message-ID: Date: Tue, 15 Jan 2019 15:16:57 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190115211137.rhdyjadu7fppp3p4@lenny.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Beyond the fact that the platform_name seems to be totally useless, >> additional tests show that the patch ('ASoC: soc-core: defer card probe >> until all component is added to list') adds a new restriction which >> contradicts existing error checks. >> >> None of the Intel machine drivers set the dailink "cpu_name" field but use >> the "cpu_dai_name" field instead. This was perfectly legit as documented by >> the code at the end of soc_init_dai_link() > This should be fixed by the patch > "ASoC: core: Don't defer probe on optional, NULL components" which Mark > already applied to his tree. See > http://mailman.alsa-project.org/pipermail/alsa-devel/2019-January/144323.html Ah yes, I missed this patch while I was debugging. Indeed this fixes the problem and my devices work again with Mark's for-next branch. Thanks Matthias! > > 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. same here, I don't get why the deferred probe stuff only deals with one of the two options.