mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 01:40:22 +01:00
amd/vpelib: fix memory corruption
[WHY] Wrong structure size being allocated [HOW] fixed the structure size during allocation Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com> Acked-by: Chuanyu Tseng <Chuanyu.Tseng@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36433>
This commit is contained in:
parent
74c88f740f
commit
08fd9aab30
1 changed files with 1 additions and 1 deletions
|
|
@ -999,7 +999,7 @@ const struct vpe_engine *vpe_create_engine(struct vpe_init_data *params)
|
|||
if (!params)
|
||||
return NULL;
|
||||
engine_priv = (struct vpe_engine_priv *)params->funcs.zalloc(
|
||||
params->funcs.mem_ctx, sizeof(struct vpe_engine));
|
||||
params->funcs.mem_ctx, sizeof(struct vpe_engine_priv));
|
||||
if (engine_priv == NULL)
|
||||
return NULL;
|
||||
/* setup public data */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue