mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
hk: Remove unused allocation in queue_submit
Unused and leaking memory, found with address sanitizer. Fixes:c64a2bbff5("asahi: port to stable uAPI") Signed-off-by: Mary Guillemard <mary@mary.zone> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> (cherry picked from commit64131475a8) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38167>
This commit is contained in:
parent
74880f8954
commit
28e172e956
2 changed files with 1 additions and 6 deletions
|
|
@ -704,7 +704,7 @@
|
|||
"description": "hk: Remove unused allocation in queue_submit",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "c64a2bbff5a3370bca7f40d6c9f41fb3cd6cf4ba",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -812,11 +812,6 @@ queue_submit(struct hk_device *dev, struct hk_queue *queue,
|
|||
/* Now setup the command structs */
|
||||
struct util_dynarray payload;
|
||||
util_dynarray_init(&payload, NULL);
|
||||
union drm_asahi_cmd *cmds = malloc(sizeof(*cmds) * command_count);
|
||||
if (cmds == NULL) {
|
||||
free(cmds);
|
||||
return vk_error(dev, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
}
|
||||
|
||||
unsigned nr_vdm = 0, nr_cdm = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue