diff options
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 0ed662dc72d2..c4278975c8ca 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -517,7 +517,7 @@ static int kvm_vm_ioctl_deassign_device(struct kvm *kvm, | |||
517 | goto out; | 517 | goto out; |
518 | } | 518 | } |
519 | 519 | ||
520 | if (assigned_dev->flags & KVM_DEV_ASSIGN_ENABLE_IOMMU) | 520 | if (match->flags & KVM_DEV_ASSIGN_ENABLE_IOMMU) |
521 | kvm_deassign_device(kvm, match); | 521 | kvm_deassign_device(kvm, match); |
522 | 522 | ||
523 | kvm_free_assigned_device(kvm, match); | 523 | kvm_free_assigned_device(kvm, match); |