Message ID | 1472086527-14900-1-git-send-email-axel.lin@ingics.com (mailing list archive) |
---|---|
State | Accepted |
Commit | ec103964776bf8af74e66eb1a810eada757718a5 |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3915F607F0 for <patchwork-alsa-devel@patchwork.kernel.org>; Thu, 25 Aug 2016 01:38:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29DFE2914B for <patchwork-alsa-devel@patchwork.kernel.org>; Thu, 25 Aug 2016 01:38:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EB8929153; Thu, 25 Aug 2016 01:38:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD2AD2914B for <patchwork-alsa-devel@patchwork.kernel.org>; Thu, 25 Aug 2016 01:38:43 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id CF3732671B1; Thu, 25 Aug 2016 03:38:42 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E63A826673A; Thu, 25 Aug 2016 03:19:34 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A470526673A; Thu, 25 Aug 2016 03:19:30 +0200 (CEST) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by alsa0.perex.cz (Postfix) with ESMTP id 959572671B3 for <alsa-devel@alsa-project.org>; Thu, 25 Aug 2016 02:55:48 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id g202so2168520pfb.1 for <alsa-devel@alsa-project.org>; Wed, 24 Aug 2016 17:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=lxN8Fz8xTUXlbWynz91bDjabLTys3fdCFHe5MBMVdfs=; b=dtF1aQ4S+tD2G3hDuzMRyGe0o+qEI5c0ybiSoXwYSO8EaVvYL+sfKZ5ZvNpDfIb9pP uqy2d+TLtHN+0BE1Acgll4dGpyquBEsv228NhHi7440T/5E5cyGQOACI4CySc2Ne053F 4biLAgjxVXX0YWrMXPlyfPgemskzX0NUdVtEcGuBQ/ixnXaOTqE/U0/x1V65JTsTZYU2 +819gbz4v2yzjwBjX4pgZKSI5nDomTT3XICQW+hpcUhz6w19wZzuI5DcX9B65osGo4MI fGYF85Q4sysbpBwnkt31/NVtydcnLnmuq1pOvJuHP9mddI9sA3fJV2keP+oSXtqqx9O3 ixNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lxN8Fz8xTUXlbWynz91bDjabLTys3fdCFHe5MBMVdfs=; b=AWcmz0mVj2qvdAvB9J8tZAt/+OgivIkbV1qzVIKJJpV/QV/Ut9M+AeRPfW9V4GJmKm jvaP5CXV/hXYvWbUsRFC6e1mOwj1kDJSIlFh21j/fYsE1t98mxOY354SllnfxvOgNMHa +PePVSnbwcmfkM8pwERfVzl7h5Zxs2gqcgNQvD2PdpSQhgvsgGdfbiILdN9WvsiiXkOb 2aZf2oDuaXSvxfRnowx5tjGOWQu8DOsyFb+i6YU9URSnptUXkDbkbkg8feGVmUsb7nC4 dXGfINDOo1x6Fa3UL05zmrRA/p5hhXcUDex5k10SfRH50cxn8bhClyYeh/QiR6ItW19N MPmQ== X-Gm-Message-State: AE9vXwN+xjJVEUWEHmga2gpNSlICR8PHZp8wEIuOb0Mo9oOjb8/pAt+HVyCMV3rFtSbUaA== X-Received: by 10.98.102.79 with SMTP id a76mr11166737pfc.75.1472086547129; Wed, 24 Aug 2016 17:55:47 -0700 (PDT) Received: from localhost.localdomain (59-115-247-191.dynamic.hinet.net. [59.115.247.191]) by smtp.gmail.com with ESMTPSA id w64sm16365278pfb.93.2016.08.24.17.55.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Aug 2016 17:55:45 -0700 (PDT) From: Axel Lin <axel.lin@ingics.com> To: Mark Brown <broonie@kernel.org> Date: Thu, 25 Aug 2016 08:55:27 +0800 Message-Id: <1472086527-14900-1-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 Cc: Axel Lin <axel.lin@ingics.com>, alsa-devel@alsa-project.org, John Hsu <KCHSU0@nuvoton.com>, Liam Girdwood <lgirdwood@gmail.com> Subject: [alsa-devel] [PATCH] ASoC: nau8810: Fix memory leak in nau8810_eq_put error path X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/codecs/nau8810.c b/sound/soc/codecs/nau8810.c index f9bcdc3..e455186 100644 --- a/sound/soc/codecs/nau8810.c +++ b/sound/soc/codecs/nau8810.c @@ -221,6 +221,7 @@ static int nau8810_eq_put(struct snd_kcontrol *kcontrol, if (ret) { dev_err(codec->dev, "EQ configuration fail, register: %x ret: %d\n", reg + i, ret); + kfree(data); return ret; } }
Signed-off-by: Axel Lin <axel.lin@ingics.com> --- sound/soc/codecs/nau8810.c | 1 + 1 file changed, 1 insertion(+)