diff options
| author | 2026-09-25 20:43:28 +0800 | |
|---|---|---|
| committer | 2026-09-28 17:07:35 +0100 | |
| commit | defd4c0b29f1cd17caa5feebac33fc5fdf4e1916 (patch) | |
| tree | 082c6581a93165218a003b095a307eda7de5b372 /scripts/Makefile.thinlto | |
| parent | iio: adc: ti-ads7950: validate SPI match data (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
