iommu/amd: Free domain id when free a domain of struct dma_ops_domain
commitb6ef0b1422089b442d848509d9d33e693b12e830
authorBaoquan He <bhe@redhat.com>
Thu, 15 Sep 2016 08:50:52 +0000 (15 16:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:51:49 +0000 (18 10:51 +0100)
tree5de8d019bc04e0aec7ca2388dacd74777f743472
parent2ef38255b5880f7dbb089b48411468fbc4fa3d07
iommu/amd: Free domain id when free a domain of struct dma_ops_domain

commit c3db901c54466a9c135d1e6e95fec452e8a42666 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: ec487d1a110a ('x86, AMD IOMMU: add domain allocation and deallocation functions')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu.c