Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1171341imu; Thu, 13 Dec 2018 10:28:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/VWxq6He+8h8WsYVWyLJu5Xn8EA7auE/eHmq6dRQ6HZwWjDCDJ5Wqcj9vn0wfWws1Vyt2SL X-Received: by 2002:a63:6cc8:: with SMTP id h191mr21803569pgc.366.1544725703041; Thu, 13 Dec 2018 10:28:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544725703; cv=none; d=google.com; s=arc-20160816; b=aNM3JDN91PyvN2eAeRRgto880qyx+HbeMmsvxTabI6iBSdsbxbVTD1/EzULOXIdRDo QGCpQ5sbgWv1K04ICq9CPfUlXQSrnKj6obLChTv0sVyhfr4zvSqXdoWrs7WBA1hN0aBT xUxUYKljwFVwYppGtNraHGn578Y2h94n0O+bFroODyQwCmFnIV3VLrXr9F/O6UBCYCW/ /8TijjT8DrORkm1VeQvVsfeEZdVstyTVU5To9/bh/2NMeWS9sq6RAXjUjgvJYodCT03/ TevWNfU3ReKtm6gr2Dc49Iw/rHyXZQfkj6AGKolVza0Tcqyr3MwcoA3MkRe3roOqbppO Ywfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=9oKAvdPFrYLHCugaf1jYrpc5CVM1vdxr3YeefcYI7R8=; b=vZTDUiP8m0WgwDMEM80uVPTkJWPUus42Jy5pJ2+gQ6CvekWOwDLsA76OzR0nOoryaQ P5PBdCPdpWGbL0MkqZeoSEOQoxzN5HZ6JnZ3nGgN+GgPfoim8RTToSsY8fryCXLlTMx7 xeEnIEbPnAZc5yGJL08AgUjxy6O7yUS56FS12b0uQQyvbjkn1lZz+Mir3DgRNFdrYZVu AfreWs+vDLCQEB3T+x7mbzqmor0NQIxaPZVDl1slLW9zD7RlGRSMbZmbET7NlQPC5kKe mSdjeWTUQAqvZ+CLdPreSu8N0AqDSbR0wBE4QX9EP0F5M7JIZDhbZwVbrKXbFsEfyHgX b5DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=QscdVVph; 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 j70si1938641pgd.138.2018.12.13.10.28.08; Thu, 13 Dec 2018 10:28:22 -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=QscdVVph; 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 S1728923AbeLMSLK (ORCPT + 99 others); Thu, 13 Dec 2018 13:11:10 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:36580 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727947AbeLMSLK (ORCPT ); Thu, 13 Dec 2018 13:11:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=9oKAvdPFrYLHCugaf1jYrpc5CVM1vdxr3YeefcYI7R8=; b=QscdVVphWrBx SqWwrd2kQvS63/WLZH1/30TZEkjT1dBA7ArRH910E3mr+SPg9JVP0D3CYguGku89iVbPAx6zTiP4L 7UN+GkReIWezFy74waUq22wu4ZZeto9J2yVTOqI/Xk7t9P/CkZ77Uri25cFWqvJ7swkXSgt5ZXQP4 z7HSA=; 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 1gXVRp-0002Oo-Q9; Thu, 13 Dec 2018 18:10:57 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 62C0011254D1; Thu, 13 Dec 2018 18:10:57 +0000 (GMT) From: Mark Brown To: Rohit kumar Cc: Mark Brown , plai@codeaurora.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, rohkumar@qti.qualcomm.com, srinivas.kandagatla@linaro.org, alsa-devel@alsa-project.org Subject: Applied "ASoC: core: Invoke pcm_new() for all DAI-link" to the asoc tree In-Reply-To: <1541075929-29323-1-git-send-email-rohitkr@codeaurora.org> X-Patchwork-Hint: ignore Message-Id: <20181213181057.62C0011254D1@debutante.sirena.org.uk> Date: Thu, 13 Dec 2018 18:10:57 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: core: Invoke pcm_new() for all DAI-link has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From de17f14ea576d8a0f2932404467fa916542da94d Mon Sep 17 00:00:00 2001 From: Rohit kumar Date: Thu, 1 Nov 2018 18:08:49 +0530 Subject: [PATCH] ASoC: core: Invoke pcm_new() for all DAI-link Remove no_pcm check to invoke pcm_new() for backend dai-links too. This fixes crash in hdmi codec driver during hdmi_codec_startup() while accessing chmap_info struct. chmap_info struct memory is allocated in pcm_new() of hdmi codec driver which is not invoked in case of DPCM when hdmi codec driver is part of backend dai-link. Below is the crash stack: [ 61.635493] Unable to handle kernel NULL pointer dereference at virtual address 00000018 .. [ 61.666696] CM = 0, WnR = 1 [ 61.669778] user pgtable: 4k pages, 39-bit VAs, pgd = ffffffc0d6633000 [ 61.676526] [0000000000000018] *pgd=0000000153fc8003, *pud=0000000153fc8003, *pmd=0000000000000000 [ 61.685793] Internal error: Oops: 96000046 [#1] PREEMPT SMP [ 61.722955] CPU: 7 PID: 2238 Comm: aplay Not tainted 4.14.72 #21 .. [ 61.740269] PC is at hdmi_codec_startup+0x124/0x164 [ 61.745308] LR is at hdmi_codec_startup+0xe4/0x164 Signed-off-by: Rohit kumar Signed-off-by: Mark Brown --- sound/soc/soc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index b0db59e6339d..0462b3ec977a 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1467,7 +1467,7 @@ static int soc_link_dai_pcm_new(struct snd_soc_dai **dais, int num_dais, for (i = 0; i < num_dais; ++i) { struct snd_soc_dai_driver *drv = dais[i]->driver; - if (!rtd->dai_link->no_pcm && drv->pcm_new) + if (drv->pcm_new) ret = drv->pcm_new(rtd, dais[i]); if (ret < 0) { dev_err(dais[i]->dev, -- 2.19.0.rc2