diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-09-25 21:17:36 +0800 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-09-28 17:07:34 +0100 |
| commit | 206fc54554c28d76c5d8f66091b846ef1dd88f64 (patch) | |
| tree | bc953ea798fa4301d72a020292f4d7f9f730f21c /tools/perf/scripts/python | |
| parent | d13716e3defd5b8cec3ee2c27f4d9b7e01314067 (diff) | |
| download | linux-next-206fc54554c28d76c5d8f66091b846ef1dd88f64.tar.gz linux-next-206fc54554c28d76c5d8f66091b846ef1dd88f64.zip | |
iio: pressure: bmp280: 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 bmp280_spi_probe() immediately dereferences the result.
Validate the match data before selecting the regmap bus.
Fixes: faac4dda9a91 ("iio: pressure: bmp280: Use spi_get_device_match_data()")
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
