diff options
author | Tadas Slotkus <devtadas@gmail.com> | 2011-09-03 17:15:00 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-09-03 17:15:00 +0000 |
commit | 839e5ab37905dadb4951f10462ad2d2194002418 (patch) | |
tree | 47583e45701d93d66e0f8d34bf3d5c620305d71f /chipset_enable.c | |
parent | 3078d84b314546b9273fc1eba28ed17c09ca0e75 (diff) | |
download | flashrom-839e5ab37905dadb4951f10462ad2d2194002418.zip flashrom-839e5ab37905dadb4951f10462ad2d2194002418.tar.gz |
Introduce ERROR_FATAL, abort upon failed chipset enables
Corresponding to flashrom svn r1426.
Signed-off-by: Tadas Slotkus <devtadas@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r-- | chipset_enable.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index eb4031b..21f2e86 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -1325,6 +1325,10 @@ int chipset_flash_enable(void) msg_pinfo("OK.\n"); else if (ret == ERROR_NONFATAL) msg_pinfo("PROBLEMS, continuing anyway\n"); + if (ret == ERROR_FATAL) { + msg_perr("FATAL ERROR!\n"); + return ret; + } } s = flashbuses_to_text(buses_supported); |