diff options
author | Alexey Skidanov <Alexey.Skidanov@amd.com> | 2014-07-08 16:30:16 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-09 16:02:41 +0200 |
commit | b00675b867d5fb59b341395c77d20655f7f2edf7 (patch) | |
tree | 5af6338265497dec7f888bb5ec710faf64fa7d25 /drivers/iommu/amd_iommu_v2.c | |
parent | Linux 3.16-rc4 (diff) | |
download | linux-b00675b867d5fb59b341395c77d20655f7f2edf7.tar.xz linux-b00675b867d5fb59b341395c77d20655f7f2edf7.zip |
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.c | 1 |
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) 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); |