diff options
| -rw-r--r-- | drivers/iommu/amd_iommu_v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu_v2.c b/drivers/iommu/amd_iommu_v2.c index 2de13be17268..5f578e850fc5 100644 --- a/drivers/iommu/amd_iommu_v2.c +++ b/drivers/iommu/amd_iommu_v2.c | |||
| @@ -367,7 +367,7 @@ static void free_pasid_states(struct device_state *dev_state) | |||
| 367 | mmu_notifier_unregister(&pasid_state->mn, pasid_state->mm); | 367 | mmu_notifier_unregister(&pasid_state->mn, pasid_state->mm); |
| 368 | 368 | ||
| 369 | put_pasid_state_wait(pasid_state); /* Reference taken in | 369 | put_pasid_state_wait(pasid_state); /* Reference taken in |
| 370 | amd_iommu_pasid_bind */ | 370 | amd_iommu_bind_pasid */ |
| 371 | 371 | ||
| 372 | /* Drop reference taken in amd_iommu_bind_pasid */ | 372 | /* Drop reference taken in amd_iommu_bind_pasid */ |
| 373 | put_device_state(dev_state); | 373 | put_device_state(dev_state); |
| @@ -749,7 +749,7 @@ void amd_iommu_unbind_pasid(struct pci_dev *pdev, int pasid) | |||
| 749 | mmu_notifier_unregister(&pasid_state->mn, pasid_state->mm); | 749 | mmu_notifier_unregister(&pasid_state->mn, pasid_state->mm); |
| 750 | 750 | ||
| 751 | put_pasid_state_wait(pasid_state); /* Reference taken in | 751 | put_pasid_state_wait(pasid_state); /* Reference taken in |
| 752 | amd_iommu_pasid_bind */ | 752 | amd_iommu_bind_pasid */ |
| 753 | out: | 753 | out: |
| 754 | /* Drop reference taken in this function */ | 754 | /* Drop reference taken in this function */ |
| 755 | put_device_state(dev_state); | 755 | put_device_state(dev_state); |
