]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: wm_adsp: Check for buffer in trigger stop
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 2 Apr 2019 12:49:14 +0000 (13:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2019 05:23:00 +0000 (07:23 +0200)
commitec031ab048703ee0602948bb2bd7820464df3e9a
treeccb43a4b531a3af491b64addef5362770273f699
parent387b15d5f8edd2a88739314031c040b4cba03cf5
ASoC: wm_adsp: Check for buffer in trigger stop

commit 43d147be5738a9ed6cfb25c285ac50d6dd5793be upstream.

Trigger stop can be called in situations where trigger start failed
and as such it can't be assumed the buffer is already attached to
the compressed stream or a NULL pointer may be dereferenced.

Fixes: 639e5eb3c7d6 ("ASoC: wm_adsp: Correct handling of compressed streams that restart")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/wm_adsp.c