ASoC: Intel: byt/hsw: Add missing kthread_stop to error/cleanup path
authorImre Deak <imre.deak@intel.com>
Fri, 30 May 2014 07:52:29 +0000 (10:52 +0300)
committerMark Brown <broonie@linaro.org>
Sun, 1 Jun 2014 10:44:49 +0000 (11:44 +0100)
commit9cf0e4520d45d5425f3a5257d346e3310e1a63b4
treec945bd6203f272bdd44a23878370ec0a62d6be3a
parent9b351d46893e827940e2e8da04f1791e8ec452ca
ASoC: Intel: byt/hsw: Add missing kthread_stop to error/cleanup path

Baytrail and Haswell SST IPC don't stop the kernel thread in error and
cleanup path thus leaving orphan kernel thread behind in such a case.

Also while at it, fix one error path in sst-haswell-ipc.c that doesn't free
hsw->msg.

[Jarkko: I edited the commit log a little]
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-baytrail-ipc.c
sound/soc/intel/sst-haswell-ipc.c