From: Joerg Roedel Date: Wed, 30 Jul 2014 14:04:37 +0000 (+0200) Subject: iommu/amd: Don't set pasid_state->mm to NULL in unbind_pasid X-Git-Tag: omap-for-v3.17/fixes-against-rc2~158^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcaa96060809224c4d2092e1e0d6efcf0d342bb4;p=pandora-kernel.git iommu/amd: Don't set pasid_state->mm to NULL in unbind_pasid With calling te mmu_notifier_register function we hold a reference to the mm_struct that needs to be released in mmu_notifier_unregister. This is true even if the notifier was already unregistered from exit_mmap and the .release call-back has already run. So make sure we call mmu_notifier_unregister unconditionally in amd_iommu_unbind_pasid. Signed-off-by: Joerg Roedel Tested-by: Oded Gabbay --- Reading git-diff-tree failed