diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2015-04-16 15:46:29 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-04-17 15:34:55 +0200 |
commit | d09a6b4a1412149c133a58b53f50e9c05a95e834 (patch) | |
tree | 850dcc8958a9f1830e843d3bee779f8ab9fe5912 /sound/soc/intel/baytrail | |
parent | ASoC: Intel: Remove invalid kfree of devm allocated data (diff) | |
download | linux-d09a6b4a1412149c133a58b53f50e9c05a95e834.tar.xz linux-d09a6b4a1412149c133a58b53f50e9c05a95e834.zip |
ASoC: Intel: sst_byt: remove kfree for memory allocated with devm_kzalloc
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_wei@trendmicro.com.cn>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/baytrail')
-rw-r--r-- | sound/soc/intel/baytrail/sst-baytrail-ipc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/intel/baytrail/sst-baytrail-ipc.c b/sound/soc/intel/baytrail/sst-baytrail-ipc.c index 1efb33b36303..a839dbfa5218 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; } |