Skip to content
Commit 6d88a624 authored by sudarsan N's avatar sudarsan N Committed by Benjamin Cabé
Browse files

drivers: adc: fix underflow in lmp90xxx_adc_start_read channel check



Prevent integer underflow when sequence->channels is 0.
Add an explicit check before calling find_msb_set().

Coverity CID: 487765

Signed-off-by: default avatarsudarsan N <sudarsansamy2002@gmail.com>
parent 660d2b3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment