mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
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: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
da4689c026
commit
0bdec95ce5
1 changed files with 1 additions and 1 deletions
|
@ -564,7 +564,7 @@ static irqreturn_t prq_event_thread(int irq, void *d)
|
||||||
|
|
||||||
if (sdev && sdev->ops && sdev->ops->fault_cb) {
|
if (sdev && sdev->ops && sdev->ops->fault_cb) {
|
||||||
int rwxp = (req->rd_req << 3) | (req->wr_req << 2) |
|
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);
|
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,
|
/* We get here in the error case where the PASID lookup failed,
|
||||||
|
|
Loading…
Reference in a new issue