summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.debug
diff options
context:
space:
mode:
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>2026-09-16 19:15:04 +0200
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-30 18:59:55 +0100
commitc5de6a6f855fdcf1e0ea549fb227a316db51c405 (patch)
treed9467b76c26b397b79e479034bcc7e58bedf81ba /scripts/Makefile.debug
parent9db3deeb2de485a9d412f0825f9ab4c8e2bccf44 (diff)
downloadlinux-stable-c5de6a6f855fdcf1e0ea549fb227a316db51c405.tar.gz
linux-stable-c5de6a6f855fdcf1e0ea549fb227a316db51c405.zip
iio: adc: stm32-adc: fix possible division by zero in processed channel
In case the conversion has failed or returned zero, processing *val can lead to a division by zero. Need to check for errors, or converted value is zero, before processing the data. In case the converted value is zero, e.g. the Vrefint channel, this should be considered as invalid in all cases. Fixes: 0e346b2cfa85 ("iio: adc: stm32-adc: add vrefint calibration support") Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://lore.kernel.org/all/20260911161555.244F31F000FF@smtp.kernel.org/ Cc: stable@vger.kernel.org Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.debug')
0 files changed, 0 insertions, 0 deletions