summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-09-25 20:57:42 +0800
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-28 17:07:35 +0100
commita07b5db685b2a3084240f9b4a9ee44f3b478c6e3 (patch)
treef10fec3bc54a322a2f7af06a508c41d3caf30b72 /tools/perf/scripts/python
parente29630bd463eb40e2e86fe45a565fb1d636ac822 (diff)
downloadlinux-next-a07b5db685b2a3084240f9b4a9ee44f3b478c6e3.tar.gz
linux-next-a07b5db685b2a3084240f9b4a9ee44f3b478c6e3.zip
iio: adc: max11205: reject devices without match data
SPI driver_override allows a device to bind to this driver without matching either the OF or SPI device ID table. In that case, spi_get_device_match_data() returns NULL. max11205_probe() immediately dereferences the returned chip information to set the IIO device name, causing a NULL pointer dereference. Commit 572a00852635 ("iio: dac: ad5686: missing NULL check on match data") fixed the same driver_override issue in another SPI driver. Reject devices without match data before using the chip information. Fixes: bf3c855be801 ("iio: adc: max11205: simplify with spi_get_device_match_data()") Cc: stable@vger.kernel.org Signed-off-by: Jiale Yao <yaojiale02@163.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions