diff options
| author | 2026-09-25 21:17:34 +0800 | |
|---|---|---|
| committer | 2026-09-28 17:07:34 +0100 | |
| commit | 2c01a0a1c5550b4f502c7747c06d2e57a240cd87 (patch) | |
| tree | 4755bccf8058edc8a9ad78cc235d0408bb441d8b /scripts/Makefile.thinlto | |
| parent | iio: frequency: adf4377: reject devices without match data (diff) | |
iio: imu: adis16400: validate SPI match data
A device bound through driver_override need not match an entry in the
driver tables. In that case spi_get_device_match_data() returns NULL,
but adis16400_probe() immediately dereferences the result.
Validate the match data before it is used.
Fixes: 2ef920e0e5c0 ("iio: imu: adis16400: Use separate structures rather than an array for chip info")
Signed-off-by: Jiale Yao <yaojiale02@163.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
