From: Marc-André Lureau Date: Mon, 22 Jun 2015 10:55:16 +0000 (+0200) Subject: ivshmem: remove last exit(1) X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=03977ad552874f6598a8f0ef3089e6846ba01a2b;p=qemu.git ivshmem: remove last exit(1) Failing to create a chardev shouldn't be fatal. Signed-off-by: Marc-André Lureau Reviewed-by: Claudio Fontana --- diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 62547c09fc..e7224b9528 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -299,7 +299,7 @@ static CharDriverState* create_eventfd_chr_device(void * opaque, EventNotifier * if (chr == NULL) { error_report("creating eventfd for eventfd %d failed", eventfd); - exit(1); + return NULL; } qemu_chr_fe_claim_no_fail(chr);