projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
flashrom: Check all mmap() calls and print helpful Linux error message.
[coreboot.git]
/
util
/
flashrom
/
cbtable.c
diff --git
a/util/flashrom/cbtable.c
b/util/flashrom/cbtable.c
index cc3a73c329deb8ebb903f8944ae180aee5f00035..e4ae0f9d5cbd3371d9b5ff82aff66606c2344b8c 100644
(file)
--- a/
util/flashrom/cbtable.c
+++ b/
util/flashrom/cbtable.c
@@
-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;