summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArnav Kapoor <kapoorarnav43@gmail.com>2026-10-24 00:28:34 +0530
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-11-02 00:39:35 +0000
commit1e50a03490120f1978c323741013457bc5c4582c (patch)
tree89736c408b3fa36d0da033914e2597a6fc958bc2 /tools/perf/scripts/python
parent4a141623442888458d147f4e61fe47411c0e4e17 (diff)
iio: adc: mcp3564: reject devices without match data
When the chip can't be identified from its ID registers, the driver falls back to spi_get_device_match_data() and dereferences the result unconditionally. That returns NULL for a device bound through driver_override whose name isn't in the id table, causing an oops. Return -ENODATA in that case. Fixes: 33ec3e5fc1ea ("iio: adc: adding support for MCP3564 ADC") Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Arnav Kapoor <kapoorarnav43@gmail.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions