On 24-Sep-26 13:12, Dawid Osuchowski wrote:
On 2026-09-24 12:59 PM, Andrzej Kacprowski wrote:
Handle NULL buffers in ivpu_bo_free() so callers can use it as a
kfree-like cleanup helper.
Use the NULL-safe helper to simplify error paths and teardown code in
firmware, IPC, preemption buffer, and metric streamer cleanup. This
removes redundant conditional frees and collapses unwind labels that only
differed by which BOs had been allocated.
Reviewed-by: Dawid Osuchowski <[email protected]>
Applied to drm-misc-next.
Signed-off-by: Andrzej Kacprowski <[email protected]>
---
drivers/accel/ivpu/ivpu_fw.c | 65 +++++++++++++++--------------------
drivers/accel/ivpu/ivpu_gem.c | 3 ++
drivers/accel/ivpu/ivpu_ipc.c | 11 +++---
drivers/accel/ivpu/ivpu_job.c | 6 ++--
drivers/accel/ivpu/ivpu_ms.c | 17 ++++-----
5 files changed, 44 insertions(+), 58 deletions(-)