summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-09-25 20:43:28 +0800
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-28 17:07:35 +0100
commitdefd4c0b29f1cd17caa5feebac33fc5fdf4e1916 (patch)
tree082c6581a93165218a003b095a307eda7de5b372 /tools/perf/scripts/python
parent6bdeaf23ef8062f4c38c025c50e524f1e4d59647 (diff)
downloadlinux-next-defd4c0b29f1cd17caa5feebac33fc5fdf4e1916.tar.gz
linux-next-defd4c0b29f1cd17caa5feebac33fc5fdf4e1916.zip
iio: accel: adxl313: 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. adxl313_spi_probe() dereferences chip_data to select the regmap configuration, 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 selecting the configuration. Fixes: d6e3ee74d16f ("iio: accel: adxl313: 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