فهرست منبع

iommu/vt-d: Fix address shifting in page request handler

This really should be VTD_PAGE_SHIFT, not PAGE_SHIFT. Not that we ever
really anticipate seeing this used on IA64, but we should get it right
anyway.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse 9 سال پیش
والد
کامیت
7f92a2e910
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      drivers/iommu/intel-svm.c

+ 1 - 1
drivers/iommu/intel-svm.c

@@ -490,7 +490,7 @@ static irqreturn_t prq_event_thread(int irq, void *d)
 		req = &iommu->prq[head / sizeof(*req)];
 
 		result = QI_RESP_FAILURE;
-		address = (u64)req->addr << PAGE_SHIFT;
+		address = (u64)req->addr << VTD_PAGE_SHIFT;
 		if (!req->pasid_present) {
 			pr_err("%s: Page request without PASID: %08llx %08llx\n",
 			       iommu->name, ((unsigned long long *)req)[0],