Skip to content

Commit 8c6e8d5

Browse files
committed
fast-get: fix heap when freeing the buffer
Use the same heap to free the buffer as the one, used to allocate it. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent b39f25d commit 8c6e8d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zephyr/lib/fast-get.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const void *fast_get(struct k_heap *heap, const void *dram_ptr, size_t size)
240240

241241
if (err < 0) {
242242
LOG_ERR("failed to grant access err=%d", err);
243-
sof_heap_free(NULL, ret);
243+
sof_heap_free(heap, ret);
244244
ret = NULL;
245245
goto out;
246246
}

0 commit comments

Comments
 (0)