From: Jiang Liu Date: Fri, 11 Jul 2014 06:19:31 +0000 (+0800) Subject: iommu/vt-d: Avoid freeing virtual machine domain in free_dmar_iommu() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~158^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=129ad28100cccc0ff01f2227dd8d0849c0114ade;p=pandora-kernel.git iommu/vt-d: Avoid freeing virtual machine domain in free_dmar_iommu() Virtual machine domains are created by intel_iommu_domain_init() and should be destroyed by intel_iommu_domain_destroy(). So avoid freeing virtual machine domain data structure in free_dmar_iommu() when doamin->iommu_count reaches zero, otherwise it may cause invalid memory access because the IOMMU framework still holds references to the domain structure. Signed-off-by: Jiang Liu Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed