Explorar el Código

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>
Wei Yongjun hace 10 años
padre
commit
d09a6b4a14
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      sound/soc/intel/baytrail/sst-baytrail-ipc.c

+ 0 - 1
sound/soc/intel/baytrail/sst-baytrail-ipc.c

@@ -759,7 +759,6 @@ fw_err:
 dsp_new_err:
 dsp_new_err:
 	sst_ipc_fini(ipc);
 	sst_ipc_fini(ipc);
 ipc_init_err:
 ipc_init_err:
-	kfree(byt);
 
 
 	return err;
 	return err;
 }
 }