Skip to content
Snippets Groups Projects
Unverified Commit e038f43e authored by Charles Han's avatar Charles Han Committed by Mark Brown
Browse files

ASoC: imx-audmix: Add NULL check in imx_audmix_probe


devm_kasprintf() can return a NULL pointer on failure,but this
returned value in imx_audmix_probe() is not checked.
Add NULL check in imx_audmix_probe(), to handle kernel NULL
pointer dereference error.

Fixes: 05d996e1 ("ASoC: imx-audmix: Split capture device for audmix")
Signed-off-by: default avatarCharles Han <hanchunchao@inspur.com>
Link: https://patch.msgid.link/20241118084553.4195-1-hanchunchao@inspur.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0109ee00
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment