diff options
author | Ameer Hamza <amhamza.mgc@gmail.com> | 2021-12-07 17:23:09 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-12-09 15:31:50 +0300 |
commit | befe304536eeef71f8529ff877444ae2b72a37db (patch) | |
tree | 2a085964cf07ebf72f4a34f732764ec40ab593b1 /drivers/regulator/bcm590xx-regulator.c | |
parent | 5f9155a7d2dc067d72a95b42168f944c7710c0d5 (diff) | |
download | linux-befe304536eeef71f8529ff877444ae2b72a37db.tar.xz |
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/20211207142309.222820-1-amhamza.mgc@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/bcm590xx-regulator.c')
0 files changed, 0 insertions, 0 deletions