diff options
author | Dharageswari.R <dharageswari.r@intel.com> | 2016-04-28 15:15:25 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-05-02 13:02:17 +0200 |
commit | 95536d8c29985167e745ff0d8c7cd7dcf4318e6b (patch) | |
tree | a0026e597bfa294973def2136ec27f34aae2d211 /sound/soc/intel/skylake/skl-sst-dsp.c | |
parent | Merge tag 'asoc-fix-v4.6-rc5' into asoc-intel (diff) | |
download | linux-95536d8c29985167e745ff0d8c7cd7dcf4318e6b.tar.xz linux-95536d8c29985167e745ff0d8c7cd7dcf4318e6b.zip |
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>
Diffstat (limited to 'sound/soc/intel/skylake/skl-sst-dsp.c')
-rw-r--r-- | sound/soc/intel/skylake/skl-sst-dsp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/intel/skylake/skl-sst-dsp.c b/sound/soc/intel/skylake/skl-sst-dsp.c index 2962ef22fc84..13c19855ee1a 100644 --- a/sound/soc/intel/skylake/skl-sst-dsp.c +++ b/sound/soc/intel/skylake/skl-sst-dsp.c @@ -336,8 +336,6 @@ void skl_dsp_free(struct sst_dsp *dsp) skl_ipc_int_disable(dsp); free_irq(dsp->irq, dsp); - dsp->cl_dev.ops.cl_cleanup_controller(dsp); - skl_cldma_int_disable(dsp); skl_ipc_op_int_disable(dsp); skl_ipc_int_disable(dsp); |