Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965017AbbDPNrc (ORCPT ); Thu, 16 Apr 2015 09:47:32 -0400 Received: from m12-14.163.com ([220.181.12.14]:46188 "EHLO m12-14.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933558AbbDPNrZ (ORCPT ); Thu, 16 Apr 2015 09:47:25 -0400 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 Cc: Wei Yongjun , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH -next] ASoC: Intel: sst_byt: remove kfree for memory allocated with devm_kzalloc 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 890 Lines: 28 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 --- 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; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/