From 2fa190ce33bdf2f58bb0a65d94e08980d92c76ed Mon Sep 17 00:00:00 2001 From: Kevin Strasser Date: Mon, 19 May 2014 11:14:23 +0300 Subject: [PATCH] ASoC: Intel: Fix pcm stream context restore crash In some cases the pcm stream is closed while context has been scheduled to be restored, causing a null pointer deref panic. Cancel work to ensure stream does not get freed while work is still active/pending. Also, restoring the pcm context can be safely skipped after the stream has been stopped. Check if pcm stream is still running before restoring stream context to help pending work finish more quickly in stream close path. Signed-off-by: Kevin Strasser Signed-off-by: Jarkko Nikula Signed-off-by: Mark Brown --- Reading git-format-patch failed