Skip to content
Snippets Groups Projects
Unverified Commit befe3045 authored by Ameer Hamza's avatar Ameer Hamza Committed by Mark Brown
Browse files

ASoC: test-component: fix null pointer dereference.


Dereferncing of_id pointer will result in exception in current
implementation since of_match_device() will assign it to NULL.
Adding NULL check for protection.

Signed-off-by: default avatarAmeer Hamza <amhamza.mgc@gmail.com>
Link: https://lore.kernel.org/r/20211207142309.222820-1-amhamza.mgc@gmail.com


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