Patrik Dahlström 21976532f2 iio: adc: palmas_gpadc: fix NULL dereference on rmmod
[ Upstream commit 49f76c499d38bf67803438eee88c8300d0f6ce09 ]

Calling dev_to_iio_dev() on a platform device pointer is undefined and
will make adc NULL.

Signed-off-by: Patrik Dahlström <risca@dalakolonin.se>
Link: https://lore.kernel.org/r/20230313205029.1881745-1-risca@dalakolonin.se
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:00:15 +09:00
..
2021-09-14 12:02:11 +01:00
2021-09-14 12:02:12 +01:00
2023-04-13 16:48:23 +02:00
2021-09-14 12:02:12 +01:00
2021-08-13 18:38:17 +02:00