diff options
| author | 2026-09-25 21:17:32 +0800 | |
|---|---|---|
| committer | 2026-09-28 17:07:34 +0100 | |
| commit | 6ac1faf4de61dcf27ffe8f2c25d96fe5f4b2886d (patch) | |
| tree | d83d57c1276754255ce286849c3a4dde40fb9b87 /scripts/Makefile.thinlto | |
| parent | iio: dac: ad5755: validate SPI match data (diff) | |
iio: dac: mcp4821: reject devices without 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 mcp4821_probe() dereferences the result while configuring the IIO
device.
Reject devices without match data before using the chip information.
Fixes: cdf3ecb0d8d0 ("iio: dac: driver for MCP4821")
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
