summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-09-25 20:43:31 +0800
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-28 17:07:35 +0100
commitbee629c18a9389cfbbe182df954cf49a9066b383 (patch)
treec3fbdd3bf9ec4b1fca346ffa423315e742fe5231 /tools/perf/scripts/python
parent9f6d174e9fa5b265e7a0a6caa0c5b579bf899702 (diff)
downloadlinux-next-bee629c18a9389cfbbe182df954cf49a9066b383.tar.gz
linux-next-bee629c18a9389cfbbe182df954cf49a9066b383.zip
iio: accel: sca3000: reject devices without match data
SPI driver_override allows a device to bind to this driver without matching either the OF or SPI device ID table. In that case, spi_get_device_match_data() returns NULL. sca3000_probe() immediately dereferences the returned chip information to set the IIO device name and channel layout, causing a NULL pointer dereference. Commit 572a00852635 ("iio: dac: ad5686: missing NULL check on match data") fixed the same driver_override issue in another SPI driver. Reject devices without match data before using the chip information. Fixes: d6ae9f202f61 ("iio: sca3000: simplify with spi_get_device_match_data()") Cc: stable@vger.kernel.org Signed-off-by: Jiale Yao <yaojiale02@163.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