]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: test-component: fix null pointer dereference.
authorAmeer Hamza <amhamza.mgc@gmail.com>
Sun, 5 Dec 2021 20:42:00 +0000 (01:42 +0500)
committerMark Brown <broonie@kernel.org>
Mon, 6 Dec 2021 13:49:26 +0000 (13:49 +0000)
commitc686316ec1210d43653c91e104c1e4cd0156dc89
tree434c791e2296c36139ac65ade1836444633fa6ea
parente733ab7e3e5dc1bf7d34e050e839fc902ce7ff98
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: Ameer Hamza <amhamza.mgc@gmail.com>
Link: https://lore.kernel.org/r/20211205204200.7852-1-amhamza.mgc@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/test-component.c