summaryrefslogtreecommitdiff
path: root/nouveau
diff options
context:
space:
mode:
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/pushbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nouveau/pushbuf.c b/nouveau/pushbuf.c
index 363ff0fc..7f1ed8ca 100644
--- a/nouveau/pushbuf.c
+++ b/nouveau/pushbuf.c
@@ -292,7 +292,7 @@ pushbuf_dump(struct nouveau_pushbuf_krec *krec, int krec_id, int chid)
kref = krec->buffer + kpsh->bo_index;
bo = (void *)(unsigned long)kref->user_priv;
bgn = (uint32_t *)((char *)bo->map + kpsh->offset);
- end = bgn + (kpsh->length /4);
+ end = bgn + ((kpsh->length & 0x7fffff) /4);
err("ch%d: psh %s%08x %010llx %010llx\n", chid,
bo->map ? "" : "(unmapped) ", kpsh->bo_index,