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)
commit4214c5349c20005b7a83916801394eb7270896b2
treefdb111598c33ce1601cead948ac12a4249b09295
parent1882b0577b5b67e7b663be4e8126997423b6cb6f
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