mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
[intel] Fix an uninitialized variable access in PRESUMED_OFFSET clearing.
It was harmless, as the only time we need to clear PRESUMED_OFFSET, the variable had been initialized already.
This commit is contained in:
parent
e03dd83209
commit
7d5f713fa5
1 changed files with 2 additions and 2 deletions
|
|
@ -354,8 +354,8 @@ intel_setup_reloc_list(dri_bo *bo)
|
|||
dri_bo_ttm *bo_ttm = (dri_bo_ttm *)bo;
|
||||
dri_bufmgr_ttm *bufmgr_ttm = (dri_bufmgr_ttm *)bo->bufmgr;
|
||||
|
||||
bo_ttm->relocs = malloc(sizeof(struct dri_ttm_reloc) *
|
||||
bufmgr_ttm->max_relocs);
|
||||
bo_ttm->relocs = calloc(bufmgr_ttm->max_relocs,
|
||||
sizeof(struct dri_ttm_reloc));
|
||||
bo_ttm->reloc_buf_data = calloc(1, RELOC_BUF_SIZE(bufmgr_ttm->max_relocs));
|
||||
|
||||
/* Initialize the relocation list with the header:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue