mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
ASoC: Intel: avs: Fix potential integer overflow
[ Upstream commitc7e832cabe
] While stream_tag for CLDMA on SKL-based platforms is always 1, function hda_cldma_setup() uses AZX_SD_CTL_STRM() macro which does: stream_tag << 20 what combined with stream_tag type of 'unsigned int' generates a potential overflow issue. Update the field type to fix that. Fixes:45864e49a0
("ASoC: Intel: avs: Implement CLDMA transfer") Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://msgid.link/r/20240405090929.1184068-8-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3e35eb8449
commit
1ca59f0a20
@ -35,7 +35,7 @@ struct hda_cldma {
|
||||
|
||||
unsigned int buffer_size;
|
||||
unsigned int num_periods;
|
||||
unsigned int stream_tag;
|
||||
unsigned char stream_tag;
|
||||
void __iomem *sd_addr;
|
||||
|
||||
struct snd_dma_buffer dmab_data;
|
||||
|
Loading…
Reference in New Issue
Block a user