summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index fddefea..04c8600 100644
--- a/flashrom.c
+++ b/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);
OpenPOWER on IntegriCloud