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)
commitd344e07940f3a3a93dec38f36593cca1591a7a5e
treead54bef7105d84ecbef28cf74db7b620987d4942
parenta634090a0f242caa8ebc91967b118995a80eb13b
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: 9b6f7e7a296e ("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