aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZhang Shurong <[email protected]>2023-07-15 23:55:50 +0800
committerJonathan Cameron <[email protected]>2023-09-12 10:42:03 +0100
commit3a23b384e7e3d64d5587ad10729a34d4f761517e (patch)
treeb6ca6c21aa166c3c3026d753b42c3cebd29f9ab8 /tools/perf/scripts/python
parent8f6bc87d67c0309a98546d933bfefd2837154c8e (diff)
iio: adc: stm32-adc: harden against NULL pointer deref in stm32_adc_probe()
of_match_device() may fail and returns a NULL pointer. In practice there is no known reasonable way to trigger this, but in case one is added in future, harden the code by adding the check Signed-off-by: Zhang Shurong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions