On 04/16/2015 04:46 PM, weiyj...@163.com wrote:
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>

It's not necessary to free memory allocated with devm_kzalloc
and using kfree leads to a double free.

Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
  sound/soc/intel/haswell/sst-haswell-ipc.c | 1 -
  1 file changed, 1 deletion(-)

diff --git a/sound/soc/intel/haswell/sst-haswell-ipc.c 
b/sound/soc/intel/haswell/sst-haswell-ipc.c
index 344a1e9..324eceb 100644
--- a/sound/soc/intel/haswell/sst-haswell-ipc.c
+++ b/sound/soc/intel/haswell/sst-haswell-ipc.c
@@ -2201,7 +2201,6 @@ dma_err:
  dsp_new_err:
        sst_ipc_fini(ipc);
  ipc_init_err:
-       kfree(hsw);
        return ret;
  }
  EXPORT_SYMBOL_GPL(sst_hsw_dsp_init);

Similar case than with baytrail. Here introduced by commit 0e7921e9583b ("ASoC: Intel: Use the generic IPC/mailbox APIs in Broadwell")

Reviewed-by: Jarkko Nikula <jarkko.nik...@linux.intel.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to