[PATCH 3/4] kvm: qemu: Fix double LIST_REMOVE device

Han, Weidong
2008-12-10T09:45:24Z

[-- Attachment #1: Type: text/plain, Size: 830 bytes --]

adev will be removed in free_assigned_device, shouldn't remove it in assigned_dev_update_irq.

Signed-off-by: Weidong Han <weidong.han@intel.com>
---
qemu/hw/device-assignment.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/qemu/hw/device-assignment.c b/qemu/hw/device-assignment.c
index c72c57c..20618a4 100644
--- a/qemu/hw/device-assignment.c
+++ b/qemu/hw/device-assignment.c
@@ -525,7 +525,6 @@ void assigned_dev_update_irq()
adev->name, strerror(-r));
fprintf(stderr, "Perhaps you are assigning a device "
"that shares an IRQ with another device?\n");
- LIST_REMOVE(adev, next);
free_assigned_device(adev);
adev = next;
continue;
--
1.6.0.4

[-- Attachment #2: 0003-Fix-double-LIST_REMOVE-device.patch --]
[-- Type: application/octet-stream, Size: 1009 bytes --]

From 20589201a28f80d8d240312d4bb59af68d299eea Mon Sep 17 00:00:00 2001
From: Weidong Han <weidong.han@intel.com>
Date: Wed, 10 Dec 2008 17:23:09 +0800
Subject: [PATCH] Fix double LIST_REMOVE device

adev will be removed in free_assigned_device, shouldn't remove it in assigned_dev_update_irq.

Signed-off-by: Weidong Han <weidong.han@intel.com>
---
qemu/hw/device-assignment.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/qemu/hw/device-assignment.c b/qemu/hw/device-assignment.c
index c72c57c..20618a4 100644
--- a/qemu/hw/device-assignment.c
+++ b/qemu/hw/device-assignment.c
@@ -525,7 +525,6 @@ void assigned_dev_update_irq()
adev->name, strerror(-r));
fprintf(stderr, "Perhaps you are assigning a device "
"that shares an IRQ with another device?\n");
- LIST_REMOVE(adev, next);
free_assigned_device(adev);
adev = next;
continue;
--
1.6.0.4