|
@@ -528,8 +528,10 @@ long kvmppc_rm_h_put_tce_indirect(struct kvm_vcpu *vcpu,
|
|
|
ua = 0;
|
|
ua = 0;
|
|
|
if (kvmppc_gpa_to_ua(vcpu->kvm,
|
|
if (kvmppc_gpa_to_ua(vcpu->kvm,
|
|
|
tce & ~(TCE_PCI_READ | TCE_PCI_WRITE),
|
|
tce & ~(TCE_PCI_READ | TCE_PCI_WRITE),
|
|
|
- &ua, NULL))
|
|
|
|
|
- return H_PARAMETER;
|
|
|
|
|
|
|
+ &ua, NULL)) {
|
|
|
|
|
+ ret = H_PARAMETER;
|
|
|
|
|
+ goto unlock_exit;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
list_for_each_entry_lockless(stit, &stt->iommu_tables, next) {
|
|
list_for_each_entry_lockless(stit, &stt->iommu_tables, next) {
|
|
|
ret = kvmppc_rm_tce_iommu_map(vcpu->kvm, stt,
|
|
ret = kvmppc_rm_tce_iommu_map(vcpu->kvm, stt,
|