aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2018-11-05 10:18:58 +0800
committerJoerg Roedel <[email protected]>2018-11-06 16:46:24 +0100
commit19ed3e2dd8549c1a34914e8dad01b64e7837645a (patch)
treebbf7d843575cb67beb9b74818b6fd06638a189eb
parent651022382c7f8da46cb4872a545ee1da6d097d2a (diff)
iommu/vt-d: Fix NULL pointer dereference in prq_event_thread()
When handling page request without pasid event, go to "no_pasid" branch instead of "bad_req". Otherwise, a NULL pointer deference will happen there. Cc: Ashok Raj <[email protected]> Cc: Jacob Pan <[email protected]> Cc: Sohil Mehta <[email protected]> Signed-off-by: Lu Baolu <[email protected]> Fixes: a222a7f0bb6c9 'iommu/vt-d: Implement page request handling' Signed-off-by: Joerg Roedel <[email protected]>
-rw-r--r--drivers/iommu/intel-svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c
index db301efe126d..887150907526 100644
--- a/drivers/iommu/intel-svm.c
+++ b/drivers/iommu/intel-svm.c
@@ -595,7 +595,7 @@ static irqreturn_t prq_event_thread(int irq, void *d)
pr_err("%s: Page request without PASID: %08llx %08llx\n",
iommu->name, ((unsigned long long *)req)[0],
((unsigned long long *)req)[1]);
- goto bad_req;
+ goto no_pasid;
}
if (!svm || svm->pasid != req->pasid) {