diff options
-rw-r--r-- | src/drivers/elog/elog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 95660784aa..0bb4d164e9 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -499,7 +499,8 @@ static void elog_find_flash(void) flash_base = total_size = 0; } else { flash_base = region_offset(&r); - total_size = region_sz(&r); + /* Keep 4KiB max size until large malloc()s have been fixed. */ + total_size = MIN(4*KiB, region_sz(&r)); } log_size = total_size - sizeof(struct elog_header); |