[flashrom] [PATCH 10/10] Remove exit call from register_undo_mmio_write

Niklas Söderlund niso at kth.se
Mon Sep 23 20:27:29 CEST 2013


Signed-off-by: Niklas Söderlund <niso at kth.se>
---
 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





More information about the flashrom mailing list