Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3db901c authored by Baoquan He's avatar Baoquan He Committed by Joerg Roedel
Browse files

iommu/amd: Free domain id when free a domain of struct dma_ops_domain



The current code missed freeing domain id when free a domain of
struct dma_ops_domain.

Signed-off-by: default avatarBaoquan He <bhe@redhat.com>
Fixes: ec487d1a ('x86, AMD IOMMU: add domain allocation and deallocation functions')
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 5c87f62d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1723,6 +1723,9 @@ static void dma_ops_domain_free(struct dma_ops_domain *dom)

	free_pagetable(&dom->domain);

	if (dom->domain.id)
		domain_id_free(dom->domain.id);

	kfree(dom);
}