From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 858D9C10F11 for ; Wed, 10 Apr 2019 15:48:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5066120830 for ; Wed, 10 Apr 2019 15:48:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554911326; bh=A3TmV9eaiRagzFI2v4pLY6YYNHyQxDosoxBwJ6wfYk0=; h=From:To:Cc:Subject:In-Reply-To:Date:List-ID:From; b=So3OsebvW6IWb1Pyump3Spt8QuowV3PDAam+8mZXn/MMZceCAjOAzPfNkGORUpqTE SJHHW/ps7u0307d5Kijp6O1hrM/yfW+6FcU8ac+RyeX8mDQlq+CUquMzebeJdRPwXt UydC1ay3VA6eYYhUcv9j8/VJmaLa6bpKZbHHqtLY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387459AbfDJPsp (ORCPT ); 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