commit | 0d29b60641438d4383eec5410a31c3acaa9f807a | [log] [tgz] |
---|---|---|
author | Segher Boessenkool <segher@kernel.crashing.org> | Tue Aug 12 11:58:00 2008 +0000 |
committer | Segher Boessenkool <segher@kernel.crashing.org> | Tue Aug 12 11:58:00 2008 +0000 |
tree | 35cdb3595d9b3499d5840583db844e9665f12e1b | |
parent | bff9bf24c77e5536539ea5bf86cf665bc471e680 [diff] |
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>