From: Joerg Roedel Date: Wed, 9 Jul 2014 13:43:11 +0000 (+0200) Subject: iommu/amd: Don't call the inv_ctx_cb when pasid is not set up X-Git-Tag: omap-for-v3.17/fixes-against-rc2~158^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9e1611e7347b41bae8894e957a398fa41162dab;p=pandora-kernel.git iommu/amd: Don't call the inv_ctx_cb when pasid is not set up On the error path of amd_iommu_bind_pasid() we call mmu_notifier_unregister() for cleanup. This calls mn_release() which calls the users inv_ctx_cb function if one is available. Since the pasid is not set up yet there is nothing the user can to tear down in this call-back. So don't call inv_ctx_cb on the error path of amd_iommu_unbind_pasid() and make life of the users simpler. Signed-off-by: Joerg Roedel Tested-by: Oded Gabbay --- Reading git-diff-tree failed