]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Cancel hsw_notification_work before freeing the stream
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 24 Apr 2014 07:34:36 +0000 (10:34 +0300)
committerMark Brown <broonie@linaro.org>
Thu, 24 Apr 2014 10:32:23 +0000 (11:32 +0100)
commit64a1dc60208f9bfc5e2557cdaafe6ebc43f62214
tree1cc24f2b3e6bbd1727f7cc758fa126c3cab9cc39
parentad7689f5dfaae8f8551242b46b90e9e88ef45508
ASoC: Intel: Cancel hsw_notification_work before freeing the stream

I suppose there is a possibility that hsw_notification_work() may run after
sst_hsw_stream_free() which can lead to a kernel crash since struct
sst_hsw_stream is freed at that point and
stream = container_of(work, struct sst_hsw_stream, notify_work) is not valid
when hsw_notification_work() is run.

Reported-by: Derek Basehore <dbasehore@chromium.org>
Reported-by: Wenkai Du <wenkai.du@intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-haswell-ipc.c