diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2008-08-12 11:58:00 +0000 |
---|---|---|
committer | Segher Boessenkool <segher@kernel.crashing.org> | 2008-08-12 11:58:00 +0000 |
commit | 716c7204685b65707f83956bbae8bd3e338f9286 (patch) | |
tree | 6ac3da5a7105d70a9853eee9827e2ae2fc5c8b39 /src/mainboard/tyan/s2891/mptable.c | |
parent | d133d9a23077e30f57014ab84633b7a0c4dc2518 (diff) |
flashrom: 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.
Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3502 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/tyan/s2891/mptable.c')
0 files changed, 0 insertions, 0 deletions