![]() Smatch report warning as follows:
sound/soc/amd/acp/acp-platform.c:199 acp_dma_open() warn:
'&stream->list' not removed from list
If snd_pcm_hw_constraint_integer() fails in acp_dma_open(),
stream will be freed, but stream->list will not be removed from
adata->stream_list, then list traversal may cause UAF.
Fix by adding the newly allocated stream to the list once it's fully
initialised.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
acp-i2s.c | ||
acp-legacy-mach.c | ||
acp-mach-common.c | ||
acp-mach.h | ||
acp-pci.c | ||
acp-pdm.c | ||
acp-platform.c | ||
acp-rembrandt.c | ||
acp-renoir.c | ||
acp-sof-mach.c | ||
amd.h | ||
chip_offset_byte.h |