aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorPavel Zhigulin <Pavel.Zhigulin@kaspersky.com>2025-11-14 18:13:01 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-12-21 11:14:09 +0000
commit6b39824ac4c15783787e6434449772bfb2e31214 (patch)
tree5bdee5f43185c1d979be5ad6a09a3f2e1a1c70ef /tools/perf/scripts/python/net_dropmonitor.py
parentiio: adc: at91-sama5d2_adc: Fix potential use-after-free in sama5d2_adc driver (diff)
downloadlinux-6b39824ac4c15783787e6434449772bfb2e31214.tar.gz
linux-6b39824ac4c15783787e6434449772bfb2e31214.zip
iio: adc: ad7280a: handle spi_setup() errors in probe()
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: 2051f25d2a26 ("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>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions