aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu_v2.c
diff options
context:
space:
mode:
authorAlexey Skidanov <Alexey.Skidanov@amd.com>2014-07-08 10:30:16 -0400
committerJoerg Roedel <jroedel@suse.de>2014-07-09 10:02:41 -0400
commitb00675b867d5fb59b341395c77d20655f7f2edf7 (patch)
tree5af6338265497dec7f888bb5ec710faf64fa7d25 /drivers/iommu/amd_iommu_v2.c
parentcd3de83f147601356395b57a8673e9c5ff1e59d1 (diff)
iommu/amd: Fix for pasid initialization
The pasid wasn't properly initialized before caling to invalid PPR calback Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu_v2.c')
-rw-r--r--drivers/iommu/amd_iommu_v2.c1
1 files changed, 1 insertions, 0 deletions
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)
612 fault->state = pasid_state; 612 fault->state = pasid_state;
613 fault->tag = tag; 613 fault->tag = tag;
614 fault->finish = finish; 614 fault->finish = finish;
615 fault->pasid = iommu_fault->pasid;
615 fault->flags = iommu_fault->flags; 616 fault->flags = iommu_fault->flags;
616 INIT_WORK(&fault->work, do_fault); 617 INIT_WORK(&fault->work, do_fault);
617 618