You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CrosEcReadMemU8 returns 0 on IOCTL failure but we never check this. If
the memmap read fails, the buffers stay uninitialized/unchanged, which
makes the busy bit logic fail and the sensor report the wrong data.
Add an EC_READ_U8 helper macro to checks for failure and jump to Exit
with STATUS_IO_DEVICE_ERROR, so that broken EC communication is properly
reported instead of producing invalid readings.
Signed-off-by: Daniel Schaefer <dhs@frame.work>
0 commit comments