From: Alex Williamson Date: Fri, 4 Mar 2011 21:52:16 +0000 (-0700) Subject: intel-iommu: Unlink domain from iommu X-Git-Tag: v2.6.39-rc5~31^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a97590e56d0d58e1dd262353f7cbd84e81d8e600;p=pandora-kernel.git intel-iommu: Unlink domain from iommu When we remove a device, we unlink the iommu from the domain, but we never do the reverse unlinking of the domain from the iommu. This means that we never clear iommu->domain_ids, eventually leading to resource exhaustion if we repeatedly bind and unbind a device to a driver. Also free empty domains to avoid a resource leak. Signed-off-by: Alex Williamson Acked-by: Donald Dutile Signed-off-by: David Woodhouse Cc: stable@kernel.org --- Reading git-diff-tree failed