linux-stable/drivers/iio
Zhang Shurong b028f89c56 iio: adc: stm32-adc: harden against NULL pointer deref in stm32_adc_probe()
[ Upstream commit 3a23b384e7 ]

of_match_device() may fail and returns a NULL pointer.

In practice there is no known reasonable way to trigger this, but
in case one is added in future, harden the code by adding the check

Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Link: https://lore.kernel.org/r/tencent_994DA85912C937E3B5405BA960B31ED90A08@qq.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-28 17:14:49 +00:00
..
accel iio: accel: adxl313: Fix adxl313_i2c_id[] table 2023-09-13 09:53:37 +02:00
adc iio: adc: stm32-adc: harden against NULL pointer deref in stm32_adc_probe() 2023-11-28 17:14:49 +00:00
addac iio: addac: Kconfig: update ad74413r selections 2023-10-19 23:11:03 +02:00
afe iio: afe: rescale: Accept only offset channels 2023-11-02 09:36:56 +01:00
amplifiers iio: amplifiers: ad8366 Fix whitespace issue 2023-05-28 16:01:55 +01:00
buffer iio: Don't silently expect attribute types 2022-11-23 19:44:04 +00:00
cdc iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
chemical iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
common iio: cros_ec: fix an use-after-free in cros_ec_sensors_push_data() 2023-10-19 23:11:03 +02:00
dac iio: dac: ad3552r: Correct device IDs 2023-10-19 23:11:03 +02:00
dummy
filter iio: filter: admv8818: close potential out-of-bounds read in __admv8818_read_[h|l]pf_freq() 2022-11-23 19:43:57 +00:00
frequency iio: frequency: adf4350: Use device managed functions and fix power down issue. 2023-11-20 11:57:12 +01:00
gyro iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
health iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
humidity iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
imu iio: imu: bno055: Fix missing Kconfig dependencies 2023-10-19 23:11:03 +02:00
light iio: light: vcnl4000: Don't power on/off chip in config 2023-10-25 12:16:16 +02:00
magnetometer 1st set of IIO new device support, features and cleanup for the 6.5 cycle. 2023-06-15 13:01:55 +02:00
multiplexer iio: multiplexer: Switch to use dev_err_probe() helper 2022-11-23 19:43:57 +00:00
orientation
position
potentiometer iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
potentiostat iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
pressure iio: pressure: ms5611: ms5611_prom_is_valid false negative bug 2023-10-19 23:11:03 +02:00
proximity iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
resolver iio: resolver: ad2s90: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
temperature iio: temperature: tmp006: Add OF device matching support 2023-05-28 20:22:03 +01:00
test iio: test: Mark file local structure arrays static. 2022-08-15 22:30:01 +01:00
trigger iio: Rename iio_trigger_poll_chained and add kernel-doc 2023-03-11 12:18:29 +00:00
Kconfig iio: light: Add gain-time-scale helpers 2023-04-10 12:26:34 +01:00
Makefile iio: light: Add gain-time-scale helpers 2023-04-10 12:26:34 +01:00
TODO iio: core: move 'mlock' to 'struct iio_dev_opaque' 2022-11-23 19:44:00 +00:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c iio: buffer: fix coding style warnings 2023-05-13 17:56:06 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: Prevent invalid memory access when there is no parent 2023-07-22 17:51:55 +01:00
industrialio-event.c 4th set of IIO fixes for 6.1 2022-11-27 15:05:05 +01:00
industrialio-gts-helper.c iio: gts-helpers: fix integration time units 2023-05-13 17:54:57 +01:00
industrialio-sw-device.c iio: Don't use bare "unsigned" 2022-07-01 11:19:08 +01:00
industrialio-sw-trigger.c iio: core: Fix entry not deleted when iio_register_sw_trigger_type() fails 2022-11-12 17:53:35 +00:00
industrialio-trigger.c iio: trigger: Add simple trigger_validation helper 2023-05-23 21:20:17 +01:00
industrialio-triggered-event.c
inkern.c iio: inkern: fix coding style warnings 2022-08-15 22:30:00 +01:00