Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6733821yba; Wed, 1 May 2019 19:20:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVDC/Qq6ztXztmq3okHcGa4Zgh34jSF6VHjjDjvZDqfQdzciqoB/I6XVLDHQ4x7cB4nl4H X-Received: by 2002:a63:2d41:: with SMTP id t62mr1265221pgt.113.1556763605009; Wed, 01 May 2019 19:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556763605; cv=none; d=google.com; s=arc-20160816; b=JRz4BkG6OSrUlZQx944iypnIWRrFAH4QrQiS98VoANxcU17mEnzxDHszxqEOwH8FSh Crh4rMFwNzfwkusvJVzAKLWuRPYzR68zY44zppBgpIohXgjREaUGNKwG1fPIcd6Dd4yM bLuJq3Wl6dcVzSwSynMmxYLLzJNqnG96qYlGNZtrmHdHeZoL9XLr9jCJkXViOtOsLB+S nNOdtQJAp4B2dl8TpDoc3bjoRjXvjmgIb0/laqsr4lOhERMdJVuEH0bzuMqkU8L4gHgM ErXb8fL/c4jz6o6C28pxNoJ7Kr63KbzttpgF7+UDRu7CI+FGfpjc/tlUGjCfAjDb1GuA 3PUg== 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=v7BNy5FY8VVxeuyTtTXhkNB4mGH8vIIA5LpX6bCLpJ8=; b=jKNQFocUzH4pHhheKXE9+3SKoohhD3EkiVzjHxY+48ENKNGkqOOPkvKLIMHh+6FcYR lG+Mti0ycSy+CTJRipZef/115ekpTSi5DZ+2rcGcwEHv4C4K9iofv4gtIeFsVp4o1nkA 8lSi9M8TSsNsU/I5uI1kOjCEL1Lnbxk7MUoeO/LDm5R6dOUGMJLnE08JeYS1XMcdOLtZ IomLrclwnpwuLtWrMZtkfD7bgowiyPkoyhjZ1jaglD/pURRY9TbgvRC3WZuxrqbdJFhO RBjblTtHIibzYoIJoOP/zGtjJWtwNKx+6uuEZ8V4xnMNwMkyCKJgzFK76F+7tKyIgbkK JOfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="V1cGA/05"; 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 n12si18991331pgg.237.2019.05.01.19.19.49; Wed, 01 May 2019 19:20:04 -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="V1cGA/05"; 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 S1726445AbfEBCSk (ORCPT + 99 others); Wed, 1 May 2019 22:18:40 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:55504 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726409AbfEBCSh (ORCPT ); Wed, 1 May 2019 22:18:37 -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=v7BNy5FY8VVxeuyTtTXhkNB4mGH8vIIA5LpX6bCLpJ8=; b=V1cGA/05FX50 uuJCa27A5ApgejS5gJ9WHiWtsQZmO+GJz/0LxRIHZ+STJtN9zvkDjb7DsHCUjkWVSQQaqa0eEpK0X ca0it7N5oVyYWx+70SkLNp/NStgDY46CXcv0aSUtHCoLQadcYEygmlwWMYfbRsbCztdf5hhrD8vvB 6tW00=; Received: from [211.55.52.15] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hM1Im-0005rm-Ua; Thu, 02 May 2019 02:18:25 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id E7690441D3B; Thu, 2 May 2019 03:18:21 +0100 (BST) From: Mark Brown To: Kangjie Lu Cc: alsa-devel@alsa-project.org, Bard Liao , kjlu@umn.edu, Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown , Oder Chiou , pakki001@umn.edu, Takashi Iwai Subject: Applied "ASoC: rt5645: fix a NULL pointer dereference" to the asoc tree In-Reply-To: <20190315034833.25037-1-kjlu@umn.edu> X-Patchwork-Hint: ignore Message-Id: <20190502021821.E7690441D3B@finisterre.ee.mobilebroadband> Date: Thu, 2 May 2019 03:18:21 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: rt5645: fix a NULL pointer dereference 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 51dd97d1df5fb9ac58b9b358e63e67b530f6ae21 Mon Sep 17 00:00:00 2001 From: Kangjie Lu Date: Thu, 14 Mar 2019 22:48:32 -0500 Subject: [PATCH] ASoC: rt5645: fix a NULL pointer dereference devm_kcalloc() may fail and return NULL. The fix returns ENOMEM in case it fails to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Signed-off-by: Mark Brown --- sound/soc/codecs/rt5645.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 9a0751978090..f842775dbf2c 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -3419,6 +3419,9 @@ static int rt5645_probe(struct snd_soc_component *component) RT5645_HWEQ_NUM, sizeof(struct rt5645_eq_param_s), GFP_KERNEL); + if (!rt5645->eq_param) + return -ENOMEM; + return 0; } -- 2.20.1