linux/drivers/accel
Zishun Yi 84dd57fb03 accel/amdxdna: Fix memory leak in amdxdna_ubuf_map
The amdxdna_ubuf_map() function allocates memory for sg and
internal sg table structures, but it fails to free them if subsequent
operations (sg_alloc_table_from_pages or dma_map_sgtable) fail.

Fixes: bd72d4acda ("accel/amdxdna: Support user space allocated buffer")
Signed-off-by: Zishun Yi <zishun.yi.dev@gmail.com>
Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
Reviewed-by: Min Ma <mamin506@gmail.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260129171022.68578-1-zishun.yi.dev@gmail.com
2026-01-30 11:52:59 -08:00
..
amdxdna accel/amdxdna: Fix memory leak in amdxdna_ubuf_map 2026-01-30 11:52:59 -08:00
ethosu drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
habanalabs accel/habanalabs: add Infineon version check 2025-09-25 09:14:45 +03:00
ivpu accel/ivpu: Implement warm boot flow for NPU6 and unify boot handling 2026-01-08 11:49:37 +01:00
qaic accel/qaic: Add qaic_ prefix to irq_polling_work 2025-11-07 11:27:46 -07:00
rocket accel/rocket: factor out code with find_core_for_dev in rocket_remove 2026-01-10 17:49:14 +01:00
drm_accel.c drm: move drm based debugfs funcs to drm_debugfs.c 2025-07-04 15:58:22 +02:00
Kconfig accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00
Makefile accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00