From: Joerg Roedel Date: Mon, 8 Mar 2010 13:20:07 +0000 (+0100) Subject: x86/amd-iommu: Use helper function to destroy domain X-Git-Tag: v2.6.34-rc5~13^2^2~2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b408fe4f853dcfa18d133aa4cf1d7546b4c3870;p=pandora-kernel.git x86/amd-iommu: Use helper function to destroy domain In the amd_iommu_domain_destroy the protection_domain_free function is partly reimplemented. The 'partly' is the bug here because the domain is not deleted from the domain list. This results in use-after-free errors and data-corruption. Fix it by just using protection_domain_free instead. Cc: stable@kernel.org Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed