Skip to content
Commit 50a044a3 authored by David Leach's avatar David Leach Committed by Benjamin Cabé
Browse files

drivers: sensor: fxls8974: fix size misalignment memory access



Coverity identified out-of-bounds access. A uint8_t being cast to
an enum is undefined in that the enum can be allocated 4bytes.

Change the internal function to use the base type of the variable,
uint8_t to avoid potential compiler size alignement problems.

Fixes #81927

Signed-off-by: default avatarDavid Leach <david.leach@nxp.com>
parent 83a45f49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment