Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3836005imm; Mon, 18 Jun 2018 05:02:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIcoBHpCsBYIfCITnvzWab3At7wc4K3oOCspLSRRztrtYCZ+s2N+Ay1nAoDxtIOleuYkE7X X-Received: by 2002:a62:4e07:: with SMTP id c7-v6mr13300737pfb.149.1529323340338; Mon, 18 Jun 2018 05:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529323340; cv=none; d=google.com; s=arc-20160816; b=bew5IOHeoxGszgqa5xwg0BKrDTfYwY7X9YkxjenaVCBiKIHjZ9QOuv426XtDclCfY+ taB9+aV9vr80mIVBI4LlAzMvKRhSSbK+GcNCKTuCOgAI/uwyqK4W2vZCw642H0apLAsL W49kS/EFnveLRX6Nha1fAHTTDmzwfh1cXONes7sGfskA0/9fzbYRpO3a85Xb6m6fS7EC dL/0Gq6Laldire1iGsTBnGRDqp+RgROJnhb6KcsuM5vij6egidQYJ6/RwS+ZluckvSTY g6G0SkJ1OM4LXuRPO8hbsqdF3il5WdYYuNJzF6sXlawXkkwQDNasuzotVTyV+IKl5xv1 CZug== 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:arc-authentication-results; bh=+7ew39sr4Feny/u0aX5Molqap3LpGBm3vj42I3g413E=; b=IXWCMgD487YgoaavbiqaHEn78UzwaMGZ2MgNboK3JKoVn/2ncXHbiQbaBSdKZ3vvrj c0dVu+fVCqezIrTIB1wsTwhSQq0Uevqh3Bwh9oY5c9oezvZFAYGo/qYaFIi7hVKjxhgM oiNO6ltmaYLNGH2sFV4TbnK+XE5dreTxWM09jXKidoF2iI+fZQegizkBjEFDfCd2n2ey 7nG7nfZnz2ssRbj9i6aOO5n1aKJdBU4S76Re2DFkzDFBhflx0cEgCJ8HjYjkI6xGAEtk aDrMhbw4BGwq3xhNJljsjvm5uVZD64fE9sfL0LAcTfLifqHvbqXcFH3k5LsEO94izfDc I6dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=PUcRidz6; 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 d88-v6si14731616pfl.297.2018.06.18.05.02.06; Mon, 18 Jun 2018 05:02:20 -0700 (PDT) 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=PUcRidz6; 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 S934945AbeFRMAc (ORCPT + 99 others); Mon, 18 Jun 2018 08:00:32 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:45880 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933575AbeFRMA3 (ORCPT ); Mon, 18 Jun 2018 08:00:29 -0400 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=+7ew39sr4Feny/u0aX5Molqap3LpGBm3vj42I3g413E=; b=PUcRidz6Q8cm GiDvZe0qamj5FFaDgxqqzgb7V5l4w2LQDteVCTrkRTJygyZygOlW1Og6QAF/ToCJuo3E/mHx6Lhwd zls9MI+0EnjQRlyyjW1jjWJ521i4hcr8qkeKQL9jCsFngJbjoFoABR+pStG58GNcfO2y5AuuhMOSV 4sdxk=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fUspf-0007z8-1B; Mon, 18 Jun 2018 12:00:27 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fUspe-0000H5-Il; Mon, 18 Jun 2018 13:00:26 +0100 From: Mark Brown To: Agrawal@sirena.org.uk, Akshu Cc: Akshu Agrawal , Mark Brown , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list , Takashi Iwai , Liam Girdwood , djkurtz@chromium.org, Mark Brown , "Mukunda,, Vijendar" , Alex Deucher , akshu.agrawal@amd.com, Guenter Roeck , alsa-devel@alsa-project.org Subject: Applied "ASoC: AMD: Add NULL pointer check" to the asoc tree In-Reply-To: <1528354129-5023-1-git-send-email-akshu.agrawal@amd.com> Message-Id: Date: Mon, 18 Jun 2018 13:00:26 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: AMD: Add NULL pointer check 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 6e56e5d04191aa20e08430dcb203c081fa247e93 Mon Sep 17 00:00:00 2001 From: "Agrawal, Akshu" Date: Thu, 7 Jun 2018 14:48:43 +0800 Subject: [PATCH] ASoC: AMD: Add NULL pointer check Fix crash in those platforms whose machine driver does not expose platform_info. For those platforms we rely on default value and select I2SSP channel. Signed-off-by: Akshu Agrawal Signed-off-by: Mark Brown --- sound/soc/amd/acp-pcm-dma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index 77203841c535..1458b5048498 100644 --- a/sound/soc/amd/acp-pcm-dma.c +++ b/sound/soc/amd/acp-pcm-dma.c @@ -773,7 +773,8 @@ static int acp_dma_hw_params(struct snd_pcm_substream *substream, if (WARN_ON(!rtd)) return -EINVAL; - rtd->i2s_instance = pinfo->i2s_instance; + if (pinfo) + rtd->i2s_instance = pinfo->i2s_instance; if (adata->asic_type == CHIP_STONEY) { val = acp_reg_read(adata->acp_mmio, mmACP_I2S_16BIT_RESOLUTION_EN); -- 2.17.1