From: Jiang Liu Date: Wed, 19 Feb 2014 06:07:22 +0000 (+0800) Subject: iommu/vt-d: Avoid caching stale domain_device_info and fix memory leak X-Git-Tag: v3.15-rc1~70^2^6~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=816997d03bca9fabcee65f3481eb0297103eceb7;p=pandora-kernel.git iommu/vt-d: Avoid caching stale domain_device_info and fix memory leak Function device_notifier() in intel-iommu.c fails to remove device_domain_info data structures for PCI devices if they are associated with si_domain because iommu_no_mapping() returns true for those PCI devices. This will cause memory leak and caching of stale information in domain->devices list. So fix the issue by not calling iommu_no_mapping() and skipping check of iommu_pass_through. Signed-off-by: Jiang Liu Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed