From patchwork Thu Apr 16 13:46:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiyj_lk@163.com X-Patchwork-Id: 6226001 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 17072BF4A6 for ; Thu, 16 Apr 2015 13:47:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 44406202E9 for ; Thu, 16 Apr 2015 13:47:13 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 1BF60202AE for ; Thu, 16 Apr 2015 13:47:12 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 20D6C261AD8; Thu, 16 Apr 2015 15:47:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 369D4261497; Thu, 16 Apr 2015 15:46:41 +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 A0E45261504; Thu, 16 Apr 2015 15:46:40 +0200 (CEST) Received: from m12-14.163.com (m12-14.163.com [220.181.12.14]) by alsa0.perex.cz (Postfix) with ESMTP id 64C16261497 for ; Thu, 16 Apr 2015 15:46:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=8lkgVDr0Kfbb9cSMZd z5hXee4xqyPz4uz8ufabcsV0c=; b=NOS6E/mqjLOo/36unJG94My1dNmb/MERQ2 IJrG1XZDvPu26/HACc+nmac9z7nrMcxDJAoAe7Y33bt/MLiFguiemQusvnveuo7+ hKL3v1sgFDofKX7YM5FB2UYenPer0zrh3OIAju4PhGYU+PySjIRKUoUwHsA3aKiE NgjrJgAsU= Received: from localhost.localdomain.localdomain (unknown [49.77.26.90]) by smtp10 (Coremail) with SMTP id DsCowEB5wWY1vS9VtVx5AA--.415S2; Thu, 16 Apr 2015 21:46:29 +0800 (CST) X-Coremail-DSSMTP: 49.77.26.90 From: weiyj_lk@163.com To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Jin Yao , Jarkko Nikula , Jie Yang , Andy Shevchenko Date: Thu, 16 Apr 2015 21:46:29 +0800 Message-Id: <1429191989-25919-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: DsCowEB5wWY1vS9VtVx5AA--.415S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7WryUWF15GF43Zr1kXFWfAFb_yoWxurc_tw s8C340gryrWrWSyFWxXr4jkw15Zry5CFyrZFnIvr9rCr98Gas5K3Z8CryUWrn8W3Z5KFyY vr12qw47ArZFyjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUnF4i5UUUUU== X-Originating-IP: [49.77.26.90] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/1tbiMBfd1lEASpBeOQAAsA Cc: Wei Yongjun , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH -next] ASoC: Intel: sst_byt: remove kfree for memory allocated with devm_kzalloc 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun It's not necessary to free memory allocated with devm_kzalloc and using kfree leads to a double free. Signed-off-by: Wei Yongjun Acked-by: Jarkko Nikula --- sound/soc/intel/baytrail/sst-baytrail-ipc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/intel/baytrail/sst-baytrail-ipc.c b/sound/soc/intel/baytrail/sst-baytrail-ipc.c index 1efb33b..a839dbf 100644 --- a/sound/soc/intel/baytrail/sst-baytrail-ipc.c +++ b/sound/soc/intel/baytrail/sst-baytrail-ipc.c @@ -759,7 +759,6 @@ fw_err: dsp_new_err: sst_ipc_fini(ipc); ipc_init_err: - kfree(byt); return err; }