Fix error -EINVAL on mmap()
Don't calculate "flash_baseaddr" until the final value of "size" is known, otherwise we end up trying to map a page right after the end of memory. Fixes #112. Corresponding to flashrom svn r308 and coreboot v2 svn r3502. Signed-off-by:Segher Boessenkool <segher@kernel.crashing.org> Acked-by:
Stefan Reinauer <stepan@coresystems.de>
Showing
Please register or sign in to comment