mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
KVM: fix kvm_vm_ioctl_deassign_device
only need to set assigned_dev_id for deassignment, use match->flags to judge and deassign it. Acked-by: Mark McLoughlin <[email protected]> Signed-off-by: Weidong Han <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
This commit is contained in:
parent
2df8a40bcc
commit
4a906e49f1
1 changed files with 1 additions and 1 deletions
|
|
@ -517,7 +517,7 @@ static int kvm_vm_ioctl_deassign_device(struct kvm *kvm,
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (assigned_dev->flags & KVM_DEV_ASSIGN_ENABLE_IOMMU)
|
||||
if (match->flags & KVM_DEV_ASSIGN_ENABLE_IOMMU)
|
||||
kvm_deassign_device(kvm, match);
|
||||
|
||||
kvm_free_assigned_device(kvm, match);
|
||||
|
|
|
|||
Loading…
Reference in a new issue