Patch "iommu/amd: Free domain id when free a domain of struct dma_ops_domain" has been added to the 4.4-stable tree
From: <gregkh@linuxfoundation.org>
Date: 2016-11-17 07:51:24
This is a note to let you know that I've just added the patch titled
iommu/amd: Free domain id when free a domain of struct dma_ops_domain
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
iommu-amd-free-domain-id-when-free-a-domain-of-struct-dma_ops_domain.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let [off-list ref] know about it.
From c3db901c54466a9c135d1e6e95fec452e8a42666 Mon Sep 17 00:00:00 2001
From: Baoquan He <redacted>
Date: Thu, 15 Sep 2016 16:50:52 +0800
Subject: iommu/amd: Free domain id when free a domain of struct dma_ops_domain
From: Baoquan He <redacted>
commit c3db901c54466a9c135d1e6e95fec452e8a42666 upstream.
The current code missed freeing domain id when free a domain of
struct dma_ops_domain.
Signed-off-by: Baoquan He <redacted>
Fixes: ec487d1a110a ('x86, AMD IOMMU: add domain allocation and deallocation functions')
Signed-off-by: Joerg Roedel <redacted>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/iommu/amd_iommu.c | 3 +++
1 file changed, 3 insertions(+)
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c@@ -1833,6 +1833,9 @@ static void dma_ops_domain_free(struct d kfree(dom->aperture[i]); } + if (dom->domain.id) + domain_id_free(dom->domain.id); + kfree(dom); }
Patches currently in stable-queue which might be from bhe@redhat.com are queue-4.4/iommu-amd-free-domain-id-when-free-a-domain-of-struct-dma_ops_domain.patch