DragonFlyBSD Kernel Audit
DF-1943 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/drm/radeon/r600_dma.c b/sys/dev/drm/radeon/r600_dma.c
--- a/sys/dev/drm/radeon/r600_dma.c
+++ b/sys/dev/drm/radeon/r600_dma.c
@@ -456,7 +456,7 @@
 
 	size_in_dw = (num_gpu_pages << RADEON_GPU_PAGE_SHIFT) / 4;
 	num_loops = DIV_ROUND_UP(size_in_dw, 0xFFFE);
-	r = radeon_ring_lock(rdev, ring, num_loops * 4 + 8);
+	r = radeon_ring_lock(rdev, ring, num_loops * 4 + 24);
 	if (r) {
 		DRM_ERROR("radeon: moving bo (%d).\n", r);
 		radeon_sync_free(rdev, &sync, NULL);