[PATCH] ALSA: hda: Error out if invalid stream is being setup

Takashi Iwai tiwai at suse.de
Fri Dec 9 09:55:21 CET 2022


On Thu, 08 Dec 2022 15:26:35 +0100,
Cezary Rojewski wrote:
> 
> Scenario when snd_hdac_stream_setup_periods() receives an instance of
> struct hdac_stream with neither ->substream nor ->cstream initialized is
> invalid.
> 
> Simultaneously addresses "uninitialized symbol 'dmab'" error reported by
> Smatch.
> 
> Fixes: 3e9582267e3a ("ALSA: hda: Interrupt servicing and BDL setup for compress streams")
> Signed-off-by: Cezary Rojewski <cezary.rojewski at intel.com>

Thanks, pulled now.


Takashi


More information about the Alsa-devel mailing list