summaryrefslogtreecommitdiff
path: root/util/flashrom/cbtable.c
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2009-01-23 05:23:06 +0000
committerPeter Stuge <peter@stuge.se>2009-01-23 05:23:06 +0000
commit2e5481356f7e0f925dfe935e6d7a7f1cdd3681ec (patch)
tree9e1ce79349326615b1dc272c275b8b243d03e559 /util/flashrom/cbtable.c
parent8a681b1d840e701e41892f8375a15baf56107ab5 (diff)
flashrom: Check all mmap() calls and print helpful Linux error message.
Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3890 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/cbtable.c')
-rw-r--r--util/flashrom/cbtable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/flashrom/cbtable.c b/util/flashrom/cbtable.c
index cc3a73c329..e4ae0f9d5c 100644
--- 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;