Skip to content

Commit

Permalink
cros_ec: Fix selftest crash
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Oct 23, 2023
1 parent a929fbc commit 4a8eb48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework_lib/src/chromium_ec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ impl CrosEc {
}

pub fn dump_mem_region(&self) -> Option<Vec<u8>> {
self.read_memory(0x00, EC_MEMMAP_SIZE)
// Crashes on Linux cros_ec driver if we read the last byte
self.read_memory(0x00, EC_MEMMAP_SIZE-1)
}

/// Get EC firmware build information
Expand Down

0 comments on commit 4a8eb48

Please sign in to comment.