Skip to content
Unverified Commit 1bf5ee97 authored by Yuan Can's avatar Yuan Can Committed by Mark Brown
Browse files

ASoC: qcom: Add checks for devm_kcalloc



As the devm_kcalloc may return NULL, the return value needs to be checked
to avoid NULL poineter dereference.

Fixes: 24caf8d9 ("ASoC: qcom: lpass-sc7180: Add platform driver for lpass audio")
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Link: https://lore.kernel.org/r/20221124140510.63468-1-yuancan@huawei.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e9a45c8a
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