Skip to content
Snippets Groups Projects
Commit dc5aa71f authored by Charles Han's avatar Charles Han Committed by Greg Kroah-Hartman
Browse files

ASoC: imx-audmix: Add NULL check in imx_audmix_probe


[ Upstream commit e038f43edaf0083f6aa7c9415d86cf28dfd152f9 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 95792a18
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