Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: sensors: lis2dh: Fix out-of-bound access
FIX issue zephyrproject-rtos#10571 and zephyrproject-rtos#10593 atomic_xxx() functions expect the bit argument to be the position index inside the target integer and not its numerical representation (e. g. 5 means the 5th bit and not 32). The original code could potentially override an adiacent variable. Signed-off-by: Armando Visconti <armando.visconti@st.com>
- Loading branch information