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

commit c3db901c54 upstream.

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

Signed-off-by: Baoquan He <bhe@redhat.com>
Fixes: ec487d1a11 ('x86, AMD IOMMU: add domain allocation and deallocation functions')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Baoquan He 2016-09-15 16:50:52 +08:00 • committed by Ben Hutchings
commit 73a5c7e718