Skip to content
Unverified Commit c686316e 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/20211205204200.7852-1-amhamza.mgc@gmail.com


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