Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5048966yba; Wed, 10 Apr 2019 10:12:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3f2h602p1hkkyMjOzliLGfq7BkXpPJeS5rhFDsdE4BkN40FC6fR4Ik84eHCOz5Fpbxdn9 X-Received: by 2002:a62:6444:: with SMTP id y65mr44451399pfb.56.1554916334588; Wed, 10 Apr 2019 10:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554916334; cv=none; d=google.com; s=arc-20160816; b=w9o2Q0tbQ9NKpRE2IpdTl/yL1u2zLrtLIzquDUkRUyJMzud7MIaI1jvQeB0Miz3YzA IdPvZmvdXUIqXj081mJsWxUjvuNTXGGxGxS5RarlhAxTyPVWvzGuzOUmil5OMsD0OIGs EVpzch3bYjdespOcJkPd/0+kWR0R2VAhTKY6tEUpm5HmsYOOmzq0PyFjUPZlK0+R4Hmh lZI65U82apm1/2eXstxO69x/AT8U6nGn/RoRaJeIZSpPrshsKg7uS1WrNPgO/qH1PSL9 71LIVx3wl8q6OMaWFXUwuSe0Dv7UFCGAT4SJ/z8JLCQHg0jWSiwzH1osyNndXB2sY1L2 85PQ== 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=sRdjuGqiIonuiFz8dqerjwGUEBPSvR9pqPX3eRsAUgQ=; b=IYZhhiYZCXaQWXMnJRCDpmVaoT9IiYXWtAA+1qLWkWsc2J4tOh4yNnvzPAhMsklaOv MzHED/77bal+ndcWKJ+3Hku87hSM9h6Sge0FFoh4sDkLLP6rPt1qDNRiDcpwdHDAJZRL x1XpqXItA6BKLOVEpp/x8DXR22i00wFC8ysJSVfQwUU+zdAqkAn86OkchXtJ7SDHuXEZ VHTD9VkqCW6dPY4D3GjjXuBIK8BY7dbfzNVCqKWNg8q7u3bn+CA3FbS5rH5vc0FAZw7m NjFGRf4bRyLV8PRhkmkKtvIPoehTep3rfMM72N7Eg0Q24C63+z3k3bsgDQ2rRZ3f/hhA 2YNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="v/mK0jNr"; 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 cu15si34395199plb.83.2019.04.10.10.11.57; Wed, 10 Apr 2019 10:12:14 -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="v/mK0jNr"; 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 S2387455AbfDJPsp (ORCPT + 99 others); Wed, 10 Apr 2019 11:48:45 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:58840 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387444AbfDJPsp (ORCPT ); Wed, 10 Apr 2019 11:48:45 -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=sRdjuGqiIonuiFz8dqerjwGUEBPSvR9pqPX3eRsAUgQ=; b=v/mK0jNrFfXZ aoBYz1Y2pUvKIm66nLX8xNooGlfS0uSy+HNazz1Nzueyoq0zHvnG9rgqIu6JdhZXt45BVIzZF0+Ea T7ootSjVHEdBbXBIdHoiUqPMzMv8sBDRwXwconW4JwB9qSfgaMo3xqhF53dKVLdTyfVa0Hs82W36x AHqa4=; 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 1hEFSZ-0001S0-Ku; Wed, 10 Apr 2019 15:48:23 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id DB24A1128ED3; Wed, 10 Apr 2019 16:48:22 +0100 (BST) From: Mark Brown To: Kangjie Lu Cc: alsa-devel@alsa-project.org, Bard Liao , Jaroslav Kysela , 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: <20190410154822.DB24A1128ED3@debutante.sirena.org.uk> Date: Wed, 10 Apr 2019 16:48:22 +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 for-5.2 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 15c8795ef111c865ba00f5efe5cd5d0c975132cd 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