diff options
| author | 2026-09-25 21:17:36 +0800 | |
|---|---|---|
| committer | 2026-09-28 17:07:34 +0100 | |
| commit | 206fc54554c28d76c5d8f66091b846ef1dd88f64 (patch) | |
| tree | bc953ea798fa4301d72a020292f4d7f9f730f21c /scripts/Makefile.thinlto | |
| parent | iio: potentiometer: x9250: reject devices without match data (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
