Skip to contentSkip to conversation

Patch "iommu/amd: Free domain id when free a domain of struct dma_ops_domain" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Nov 17, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

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 <[email protected]> know about it.

Quoted 1 line

From c3db901c54466a9c135d1e6e95fec452e8a42666 Mon Sep 17 00:00:00 2001

From: Baoquan He <[email protected]>
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 <[email protected]>

commit c3db901c54466a9c135d1e6e95fec452e8a42666 upstream.

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

Fixes ec487d1a110a ('x86, AMD IOMMU: add domain allocation and deallocation functions')
---
 drivers/iommu/amd_iommu.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/iommu/amd_iommu.c +3 -0
@@ -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 [email protected] are

queue-4.4/iommu-amd-free-domain-id-when-free-a-domain-of-struct-dma_ops_domain.patch