diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-01-06 03:25:10 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-02-14 19:47:38 -0500 |
commit | d7cff1c37664971aae32bb0de82231ed34933d8e (patch) | |
tree | 6f4359fe37b73624aafae456dd1ed354c4ea4923 /virt | |
parent | 2aaf69dcee864f4fb6402638dd2f263324ac839f (diff) |
KVM: Fix INTx for device assignment
Missing buckets and wrong parameter for free_irq()
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 277ea7f39fc8..d9bbb20f230f 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -296,8 +296,8 @@ static int assigned_device_update_intx(struct kvm *kvm, | |||
296 | 296 | ||
297 | if (irqchip_in_kernel(kvm)) { | 297 | if (irqchip_in_kernel(kvm)) { |
298 | if (!msi2intx && | 298 | if (!msi2intx && |
299 | adev->irq_requested_type & KVM_ASSIGNED_DEV_HOST_MSI) { | 299 | (adev->irq_requested_type & KVM_ASSIGNED_DEV_HOST_MSI)) { |
300 | free_irq(adev->host_irq, (void *)kvm); | 300 | free_irq(adev->host_irq, (void *)adev); |
301 | pci_disable_msi(adev->dev); | 301 | pci_disable_msi(adev->dev); |
302 | } | 302 | } |
303 | 303 | ||