From: Kevin Strasser Date: Mon, 19 May 2014 08:14:23 +0000 (+0300) Subject: ASoC: Intel: Fix pcm stream context restore crash X-Git-Tag: omap-for-v3.16/fixes-against-rc1~21^2~52^2~3^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fa190ce33bdf2f58bb0a65d94e08980d92c76ed;p=pandora-kernel.git 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-diff-tree failed