1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 14:33:18 +02:00

Check all mmap() calls and print helpful Linux error message

Corresponding to flashrom svn r386 and coreboot v2 svn r3890.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
This commit is contained in:
Peter Stuge
2009-01-23 05:23:06 +00:00
parent 72c9668b95
commit ccf8c6c794
4 changed files with 19 additions and 7 deletions

View File

@ -191,6 +191,7 @@ int coreboot_init(void)
0x00000000);
if (low_1MB == MAP_FAILED) {
perror("Can't mmap memory using " MEM_DEV);
mmap_errmsg();
exit(-2);
}
lb_table = 0;