Zhang Shurong b80aaff5f7 iio: adc: stm32-adc: harden against NULL pointer deref in stm32_adc_probe()
[ Upstream commit 3a23b384e7e3d64d5587ad10729a34d4f761517e ]

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:07:01 +00:00
..
2022-08-16 12:46:26 +02:00
2023-04-13 16:55:31 +02:00
2022-07-16 18:50:24 +01:00
2022-09-05 18:08:34 +01:00
2022-01-23 18:03:36 +00:00
2022-09-05 18:08:34 +01:00
2022-07-18 18:29:29 +01:00
2022-08-15 22:29:57 +01:00