mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-05 10:59:26 +00:00
Currently the check of chip->channels[i].channel is against an the
uninitialized variable channels_available. I believe the variable
channels_available needs to be fetched first by the call to adc_tm5_read
before the channels check. Fix the issue swapping the order of the
channels check loop with the call to adc_tm5_read.
Addresses-Coverity: ("Uninitialized scalar variable")
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| qcom-spmi-adc-tm5.c | ||
| qcom-spmi-temp-alarm.c | ||
| tsens-8960.c | ||
| tsens-v0_1.c | ||
| tsens-v1.c | ||
| tsens-v2.c | ||
| tsens.c | ||
| tsens.h | ||