Patchwork [10/10] Remove exit call from register_undo_mmio_write

login
register
about
Submitter Niklas
Date 2013-09-23 18:27:29
Message ID <1379960849-20585-11-git-send-email-niso@kth.se>
Download mbox | patch
Permalink /patch/4061/
State New
Headers show

Comments

Niklas - 2013-09-23 18:27:29
Signed-off-by: Niklas Söderlund <niso@kth.se>
---
 hwaccess.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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;		\