]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix NULL dereference from CA0132 DSP loader
authorTakashi Iwai <tiwai@suse.de>
Tue, 19 May 2015 09:35:13 +0000 (11:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 19 May 2015 09:35:13 +0000 (11:35 +0200)
commitd73cbbbedd29e8d2b2b6e2f197827a981e83d8a1
treefdb111598c33ce1601cead948ac12a4249b09295
parentdc7e1583776fbd41533604badd7b55937131af77
ALSA: hda - Fix NULL dereference from CA0132 DSP loader

The CA0132 DSP loader leads to NULL deference since the recent
transition to HDA core code, as it unconditionally accesses
hdac_stream->substream->runtime.  For DSP loading, the substream
shouldn't be assigned.

This patch addresses the NULL dereference above in addition to assure
the substream is cleared while DSP loading.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=98151
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_stream.c