diff options
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/radeon_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/radeon_state.c b/sys/dev/pci/drm/radeon_state.c index d3f4bcc9f28..f4418c25693 100644 --- a/sys/dev/pci/drm/radeon_state.c +++ b/sys/dev/pci/drm/radeon_state.c @@ -1220,7 +1220,7 @@ radeon_cp_dispatch_indirect(struct drm_device *dev, struct drm_buf *buf, RING_LOCALS; DRM_DEBUG("buf=%d s=0x%x e=0x%x\n", buf->idx, start, end); - if (start != end) { + if (start != end && start < end) { int offset = (dev_priv->gart_buffers_offset + buf->offset + start); int dwords = (end - start + 3) / sizeof(u32); |