Skip to content
Unverified Commit ec7bf231 authored by Zeng Heng's avatar Zeng Heng Committed by Mark Brown
Browse files

ASoC: pxa: fix null-pointer dereference in filter()



kasprintf() would return NULL pointer when kmalloc() fail to allocate.
Need to check the return pointer before calling strcmp().

Fixes: 7a824e21 ("ASoC: mmp: add audio dma support")
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
Link: https://lore.kernel.org/r/20221114085629.1910435-1-zengheng4@huawei.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 23dab2ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment