ASoC: Intel: Skylake: Fix the NULL pointer exception in dsp_clean up
authorDharageswari.R <dharageswari.r@intel.com>
Thu, 28 Apr 2016 13:15:25 +0000 (18:45 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 2 May 2016 11:02:17 +0000 (12:02 +0100)
commit95536d8c29985167e745ff0d8c7cd7dcf4318e6b
treea0026e597bfa294973def2136ec27f34aae2d211
parent0ce8428ba9ea13098b828d0881e28368a108709c
ASoC: Intel: Skylake: Fix the NULL pointer exception in dsp_clean up

If request firmware fails at init, the code loader DMA allocation
can be NULL, so check for boot complete before freeing up these
resources

Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-sst-dsp.c
sound/soc/intel/skylake/skl-sst.c