efi: fix off-by-one in mem_malloc_init(..., end)
The second (end) parameter of mem_malloc_init() denotes the last address
in the malloc region, so we need to subtract one from the current value
to arrive at the correct end. So far this went not noticed, because iomem
doesn't yet display barebox malloc memory region.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2c2fbea commit 1eaadd3cef9882cd6d6af2f329b9450ef209e8e7
@Ahmad Fatoum Ahmad Fatoum authored on 4 Dec 2019
Sascha Hauer committed on 9 Dec 2019
Showing 1 changed file
View
common/efi/efi.c