Skip to content
Unverified Commit 60591bbf authored by 蒋家盛's avatar 蒋家盛 Committed by Mark Brown
Browse files

ASoC: max98373: Add checks for devm_kcalloc

As the devm_kcalloc may return NULL pointer,
it should be better to check the return value
in order to avoid NULL poineter dereference.

Fixes: 349dd239

 ("ASoC: max98373: don't access volatile registers in bias level off")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20221116082508.17418-1-jiasheng@iscas.ac.cn
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c7d7d4e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment