summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/intel/intel_bufmgr_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c b/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c
index 6f0ecfbdb86..e4e8481b962 100644
--- a/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c
+++ b/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c
@@ -247,7 +247,7 @@ intel_setup_reloc_list(dri_bo *bo)
bo_gem->relocs = calloc(bufmgr_gem->max_relocs,
sizeof(struct drm_i915_gem_relocation_entry));
- bo_gem->reloc_target_bo = calloc(1, sizeof(dri_bo *));
+ bo_gem->reloc_target_bo = calloc(bufmgr_gem->max_relocs, sizeof(dri_bo *));
return 0;
}