We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa65464 commit ca84ed7Copy full SHA for ca84ed7
drivers/iommu/virtio-iommu.c
@@ -598,12 +598,6 @@ static struct iommu_domain *viommu_domain_alloc(unsigned type)
598
spin_lock_init(&vdomain->mappings_lock);
599
vdomain->mappings = RB_ROOT_CACHED;
600
601
- if (type == IOMMU_DOMAIN_DMA &&
602
- iommu_get_dma_cookie(&vdomain->domain)) {
603
- kfree(vdomain);
604
- return NULL;
605
- }
606
-
607
return &vdomain->domain;
608
}
609
@@ -643,8 +637,6 @@ static void viommu_domain_free(struct iommu_domain *domain)
643
637
{
644
638
struct viommu_domain *vdomain = to_viommu_domain(domain);
645
639
646
- iommu_put_dma_cookie(domain);
647
648
640
/* Free all remaining mappings (size 2^64) */
649
641
viommu_del_mappings(vdomain, 0, 0);
650
642
0 commit comments