aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorPurva Yeshi <[email protected]>2025-04-10 17:04:08 +0000
committerJonathan Cameron <[email protected]>2025-04-22 18:10:04 +0000
commite5cdb098a3cb165d52282ffc3a6448642953ea13 (patch)
treea0e36f5a2a60c0b26333c5867f17ee12839d72ed /drivers/iio/trigger/stm32-timer-trigger.c
parentiio: dac: ad3552r-hs: add support for internal ramp (diff)
downloadkernel-e5cdb098a3cb165d52282ffc3a6448642953ea13.tar.gz
kernel-e5cdb098a3cb165d52282ffc3a6448642953ea13.zip
iio: adc: ad_sigma_delta: Fix use of uninitialized status_pos
Fix Smatch-detected issue: drivers/iio/adc/ad_sigma_delta.c:604 ad_sd_trigger_handler() error: uninitialized symbol 'status_pos'. The variable `status_pos` was only initialized in specific switch cases (1, 2, 3, 4), which could leave it uninitialized if `reg_size` had an unexpected value. Fix by adding a default case to the switch block to catch unexpected values of `reg_size`. Use `dev_err_ratelimited()` for error logging and `goto irq_handled` instead of returning early. Signed-off-by: Purva Yeshi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions