summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorSalah Triki <salah.triki@gmail.com>2026-04-27 21:12:38 +0100
committerJonathan Cameron <jic23@kernel.org>2026-05-15 12:04:11 +0100
commitf9bbd943c34a9ad60e593a4b99ce2394e4e2381b (patch)
tree452456ec4a47d715f5e7b8df872c292c3083e955 /scripts/objdiff
parent5ace794c3ded38038a1f97f9ea26b9a8c835c111 (diff)
iio: adc: mt6359: fix unchecked return value in mt6358_read_imp
In mt6358_read_imp(), the variable val_v is passed to regmap_read() but the return value is not checked. If the read fails, val_v remains uninitialized and its random stack content is subsequently reported as a measurement result. Initialize val_v to zero to ensure a predictable value is reported in case of bus failure and to prevent potential stack data leakage. This also satisfies static analyzers that might otherwise flag the variable as used uninitialized. Fixes: 3587914bf61d ("iio: adc: Add support for MediaTek MT6357/8/9 Auxiliary ADC") Signed-off-by: Salah Triki <salah.triki@gmail.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions