From: Alexey Skidanov Date: Tue, 8 Jul 2014 14:30:16 +0000 (+0300) Subject: iommu/amd: Fix for pasid initialization X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b00675b867d5fb59b341395c77d20655f7f2edf7;p=linux-beck.git iommu/amd: Fix for pasid initialization The pasid wasn't properly initialized before caling to invalid PPR calback Signed-off-by: Alexey Skidanov Signed-off-by: Oded Gabbay Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/amd_iommu_v2.c b/drivers/iommu/amd_iommu_v2.c index 499b4366a98d..92fb77ccb901 100644 --- a/drivers/iommu/amd_iommu_v2.c +++ b/drivers/iommu/amd_iommu_v2.c @@ -612,6 +612,7 @@ static int ppr_notifier(struct notifier_block *nb, unsigned long e, void *data) fault->state = pasid_state; fault->tag = tag; fault->finish = finish; + fault->pasid = iommu_fault->pasid; fault->flags = iommu_fault->flags; INIT_WORK(&fault->work, do_fault);