mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-10-26 10:57:38 +08:00
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. Signed-off-by: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com> Reviewed-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com> Reviewed-by: Karol Wachowski <karol.wachowski@linux.intel.com> Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com> Link: https://patch.msgid.link/20260924105906.489378-1-andrzej.kacprowski@linux.intel.com