Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d5b28d5 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

Merge branch 'fix/asoc' into for-linus

* fix/asoc:
  ASoC: Fix NULL pointer dereference in __pxa2xx_pcm_hw_free
parents 6847e154 b7d4de7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -75,7 +75,7 @@ int __pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream)
{
{
	struct pxa2xx_runtime_data *rtd = substream->runtime->private_data;
	struct pxa2xx_runtime_data *rtd = substream->runtime->private_data;


	if (rtd && rtd->params)
	if (rtd && rtd->params && rtd->params->drcmr)
		*rtd->params->drcmr = 0;
		*rtd->params->drcmr = 0;


	snd_pcm_set_runtime_buffer(substream, NULL);
	snd_pcm_set_runtime_buffer(substream, NULL);