summaryrefslogtreecommitdiff
path: root/util/flashrom/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/flashrom/flashrom.c')
-rw-r--r--util/flashrom/flashrom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c
index fddefea06d..04c86001d3 100644
--- a/util/flashrom/flashrom.c
+++ b/util/flashrom/flashrom.c
@@ -303,7 +303,8 @@ int main(int argc, char *argv[])
break;
case 'l':
tempstr=strdup(optarg);
- read_romlayout(tempstr);
+ if (read_romlayout(tempstr))
+ exit(1);
break;
case 'i':
tempstr=strdup(optarg);