iommu/amd: Fix for pasid initialization
authorAlexey Skidanov <Alexey.Skidanov@amd.com>
Tue, 8 Jul 2014 14:30:16 +0000 (17:30 +0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 9 Jul 2014 14:02:41 +0000 (16:02 +0200)
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>
drivers/iommu/amd_iommu_v2.c

index 499b4366a98d7d3b1b3148bbf9a541698c7d642c..92fb77ccb9019725660325bcce7039e073258b4b 100644 (file)
@@ -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);