Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bdec95c authored by David Woodhouse's avatar David Woodhouse
Browse files

iommu/vt-d: Fix rwxp flags in SVM device fault callback



This is the downside of using bitfields in the struct definition, rather
than doing all the explicit masking and shifting.

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent da4689c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -564,7 +564,7 @@ static irqreturn_t prq_event_thread(int irq, void *d)

		if (sdev && sdev->ops && sdev->ops->fault_cb) {
			int rwxp = (req->rd_req << 3) | (req->wr_req << 2) |
				(req->wr_req << 1) | (req->exe_req);
				(req->exe_req << 1) | (req->priv_req);
			sdev->ops->fault_cb(sdev->dev, req->pasid, req->addr, req->private, rwxp, result);
		}
		/* We get here in the error case where the PASID lookup failed,