diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-09-25 21:17:34 +0800 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-09-28 17:07:34 +0100 |
| commit | 2c01a0a1c5550b4f502c7747c06d2e57a240cd87 (patch) | |
| tree | 4755bccf8058edc8a9ad78cc235d0408bb441d8b /tools/perf/scripts/python | |
| parent | 2f3196d27e3bfcee0569d23a123aedcc6ddd39f1 (diff) | |
| download | linux-next-2c01a0a1c5550b4f502c7747c06d2e57a240cd87.tar.gz linux-next-2c01a0a1c5550b4f502c7747c06d2e57a240cd87.zip | |
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
