]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Avoid NULL pointer dereference at snd_hdac_stream_start()
authorMariusz Ceier <mceier+kernel@gmail.com>
Mon, 11 Mar 2019 20:53:57 +0000 (21:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Mar 2019 10:23:59 +0000 (11:23 +0100)
commit7079e7b6dc369fea15029de955ea9a38e5b2edc1
treead54bef7105d84ecbef28cf74db7b620987d4942
parentb2faf8c4cfab6e5bce377aae1aaa32f27a1017b6
ALSA: hda: Avoid NULL pointer dereference at snd_hdac_stream_start()

For ca0132 codec, azx_dev->stream is NULL during firmware loading.
Calling snd_hdac_get_stream_stripe_ctl unconditionally causes NULL
pointer dereference in that function.

Fixes: 156a1646a3f4 ("ALSA: hda: program stripe bits for controller")
Signed-off-by: Mariusz Ceier <mceier+kernel@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_stream.c