]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
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)
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>

No differences found