[PATCH] ALSA: hda: intel-nhlt: Correct the handling of fmt_config flexible array

Takashi Iwai tiwai at suse.de
Tue Aug 23 17:01:33 CEST 2022


On Tue, 23 Aug 2022 14:24:05 +0200,
Peter Ujfalusi wrote:
> 
> The struct nhlt_format's fmt_config is a flexible array, it must not be
> used as normal array.
> When moving to the next nhlt_fmt_cfg we need to take into account the data
> behind the ->config.caps (indicated by ->config.size).
> 
> Fixes: a864e8f159b13 ("ALSA: hda: intel-nhlt: verify config type")
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi at linux.intel.com>
> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
> Reviewed-by: Jaska Uimonen <jaska.uimonen at linux.intel.com>

Thanks, applied now.


Takashi


More information about the Alsa-devel mailing list