summaryrefslogtreecommitdiffstats
path: root/hw/misc
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2015-06-22 12:55:16 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2015-10-24 18:02:48 +0200
commit03977ad552874f6598a8f0ef3089e6846ba01a2b (patch)
treea690de7b3e4f0f9a9e611ce9d3ad12968d04e279 /hw/misc
parentd58d7e848ec6d5bcd19634212d58dec5f1efbdb8 (diff)
downloadhqemu-03977ad552874f6598a8f0ef3089e6846ba01a2b.zip
hqemu-03977ad552874f6598a8f0ef3089e6846ba01a2b.tar.gz
ivshmem: remove last exit(1)
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>
Diffstat (limited to 'hw/misc')
-rw-r--r--hw/misc/ivshmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c
index 62547c0..e7224b9 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);
OpenPOWER on IntegriCloud