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