Files
linux-stable-mirror/drivers
Pavel Zhigulin c7ee18052d iio: adc: ad7280a: handle spi_setup() errors in probe()
[ Upstream commit 6b39824ac4 ]

The probe() function ignored the return value of spi_setup(), leaving SPI
configuration failures undetected. If spi_setup() fails, the driver should
stop initialization and propagate the error to the caller.

Add proper error handling: check the return value of spi_setup() and return
it on failure.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 2051f25d2a ("iio: adc: New driver for AD7280A Lithium Ion Battery Monitoring System")
Signed-off-by: Pavel Zhigulin <Pavel.Zhigulin@kaspersky.com>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-01-30 10:28:41 +01:00
..
2026-01-17 16:31:15 +01:00
2026-01-17 16:31:16 +01:00
2026-01-11 15:25:21 +01:00
2026-01-08 10:14:29 +01:00