From patchwork Mon Sep 23 18:27:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [10/10] Remove exit call from register_undo_mmio_write Date: Mon, 23 Sep 2013 18:27:29 -0000 From: Niklas X-Patchwork-Id: 4061 Message-Id: <1379960849-20585-11-git-send-email-niso@kth.se> To: flashrom@flashrom.org Cc: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Signed-off-by: Niklas Söderlund --- 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; \