[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/6] vhost: fix migration_blocker initialization
From: |
Nikolay Nikolaev |
Subject: |
[Qemu-devel] [PATCH 5/6] vhost: fix migration_blocker initialization |
Date: |
Thu, 19 Jun 2014 18:08:43 +0300 |
User-agent: |
StGit/0.17.1-dirty |
error_set expect errp to be a NULL initialized pointer.
Signed-off-by: Nikolay Nikolaev <address@hidden>
---
hw/virtio/vhost.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
index c44c15c..e55fe1c 100644
--- a/hw/virtio/vhost.c
+++ b/hw/virtio/vhost.c
@@ -857,12 +857,11 @@ int vhost_dev_init(struct vhost_dev *hdev, void *opaque,
.eventfd_del = vhost_eventfd_del,
.priority = 10
};
+ hdev->migration_blocker = NULL;
if (!(hdev->features & (0x1 << VHOST_F_LOG_ALL))) {
error_setg(&hdev->migration_blocker,
"Migration disabled: vhost lacks VHOST_F_LOG_ALL feature.");
migrate_add_blocker(hdev->migration_blocker);
- } else {
- hdev->migration_blocker = NULL;
}
hdev->mem = g_malloc0(offsetof(struct vhost_memory, regions));
hdev->n_mem_sections = 0;
- [Qemu-devel] [PATCH 0/6] vhost-user qtest fixes, Nikolay Nikolaev, 2014/06/19
- [Qemu-devel] [PATCH 1/6] configure: add new config define CONFIG_VHOST_NET_USED, Nikolay Nikolaev, 2014/06/19
- [Qemu-devel] [PATCH 2/6] libqemustub: add more stubs for qemu-char, Nikolay Nikolaev, 2014/06/19
- [Qemu-devel] [PATCH 3/6] qtest: fix qtest for vhost-user, Nikolay Nikolaev, 2014/06/19
- [Qemu-devel] [PATCH 4/6] qtest: fix vhost-user-test unbalanced mutex locks, Nikolay Nikolaev, 2014/06/19
- [Qemu-devel] [PATCH 5/6] vhost: fix migration_blocker initialization,
Nikolay Nikolaev <=
- [Qemu-devel] [PATCH 6/6] qtest: enable vhost-user-test, Nikolay Nikolaev, 2014/06/19
- Re: [Qemu-devel] [PATCH 0/6] vhost-user qtest fixes, Michael S. Tsirkin, 2014/06/19