]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
ivshmem: remove last exit(1)
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 22 Jun 2015 10:55:16 +0000 (12:55 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:02:48 +0000 (18:02 +0200)
Failing to create a chardev shouldn't be fatal.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
hw/misc/ivshmem.c

index 62547c09fcd7ed37b6cfec495a948e7dc1bfe9c2..e7224b9528e32441712936f7c830e4e8ab660baf 100644 (file)
@@ -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);