Signed-off-by: Niklas Söderlund <[email protected]>
---
 hwaccess.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hwaccess.c b/hwaccess.c
index 8d0c2ad..7b8960e 100644
--- a/hwaccess.c
+++ b/hwaccess.c
@@ -224,7 +224,7 @@ int undo_mmio_write(void *p)
        undo_mmio_write_data = malloc(sizeof(struct undo_mmio_write_data)); \
        if (!undo_mmio_write_data) {                                    \
                msg_gerr("Out of memory!\n");                           \
-               exit(1);                                                \
+               return 1;                                               \
        }                                                               \
        undo_mmio_write_data->addr = a;                                 \
        undo_mmio_write_data->type = mmio_write_type_##c;               \
-- 
1.8.3.4


_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to