diff options
author | 2019-09-28 13:22:30 -0700 | |
---|---|---|
committer | 2019-10-01 12:45:33 +0100 | |
commit | 4bb41984bf2f4cb8ed6ec1579d317790bd941788 (patch) | |
tree | fbcc82308458785630867bd56fa1ab5603d8697f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ASoC: topology: Fix a signedness bug in soc_tplg_dapm_widget_create() (diff) | |
download | linux-dev-4bb41984bf2f4cb8ed6ec1579d317790bd941788.tar.xz linux-dev-4bb41984bf2f4cb8ed6ec1579d317790bd941788.zip |
ASoC: max98373: check for device node before parsing
Below Oops is caused in a system which uses ACPI instead of device node:
of_get_named_gpiod_flags: can't parse 'maxim,reset-gpio' property of node '(null)[0]'
BUG: kernel NULL pointer dereference, address: 0000000000000010
This patch avoids NULL pointer deferencing by adding a check before parsing
and initializes to make reset-gpio pin as invalid.
Signed-off-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Signed-off-by: Jairaj Arava <jairaj.arava@intel.com>
Link: https://lore.kernel.org/r/1569702150-11976-1-git-send-email-sathyanarayana.nujella@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions