Re: [PATCH 1/1] sound/hda/hdac_stream: Avoid NULL pointer dereference

2019-03-13 Thread Takashi Iwai
On Mon, 11 Mar 2019 21:53:57 +0100, Mariusz Ceier wrote: > > 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. > > Signed-off-by: Mariusz Ceier Applied now (with a prope

[PATCH 1/1] sound/hda/hdac_stream: Avoid NULL pointer dereference

2019-03-11 Thread Mariusz Ceier
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. Signed-off-by: Mariusz Ceier --- sound/hda/hdac_stream.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --g