Commit a84da70b authored by Jiang Liu's avatar Jiang Liu Committed by Joerg Roedel

iommu/vt-d: release invalidation queue when destroying IOMMU unit

Release associated invalidation queue when destroying IOMMU unit
to avoid memory leak.
Signed-off-by: default avatarJiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent 5ced12af
......@@ -737,6 +737,12 @@ static void free_iommu(struct intel_iommu *iommu)
destroy_irq(iommu->irq);
}
if (iommu->qi) {
free_page((unsigned long)iommu->qi->desc);
kfree(iommu->qi->desc_status);
kfree(iommu->qi);
}
if (iommu->reg)
unmap_iommu(iommu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment