Merge remote-tracking branch 'asoc/topic/intel' into asoc-next
[sfrench/cifs-2.6.git] / sound / soc / intel / skylake / skl-pcm.c
index 4380e40c6af085d6f05c833707e64dfe6d7ed7e3..1dd97479e0c014bf1f814f16dd419268529454e0 100644 (file)
@@ -355,7 +355,8 @@ static void skl_pcm_close(struct snd_pcm_substream *substream,
        }
 
        mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
-       skl_tplg_d0i3_put(skl, mconfig->d0i3_caps);
+       if (mconfig)
+               skl_tplg_d0i3_put(skl, mconfig->d0i3_caps);
 
        kfree(dma_params);
 }