diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-09-25 20:43:28 +0800 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-09-28 17:07:35 +0100 |
| commit | defd4c0b29f1cd17caa5feebac33fc5fdf4e1916 (patch) | |
| tree | 082c6581a93165218a003b095a307eda7de5b372 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 6bdeaf23ef8062f4c38c025c50e524f1e4d59647 (diff) | |
| download | linux-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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
