[PATCH] drm/scheduler: Fix mem leak when last_scheduled signaled

2025-02-20 Thread qianyi liu
Problem: If prev(last_scheduled) was already signaled I encountred a memory leak in drm_sched_entity_fini. This is because the prev(last_scheduled) fence is not free properly. Fix: Balance the prev(last_scheduled) fence refcnt when dma_fence_add_callback failed. Signed-off-by: qianyi liu

[PATCH] drm/sched: coding style fixes: miscellaneous

2024-08-28 Thread qianyi liu
This patch fixes the following checkpatch: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' WARNING: Missing a blank line after declarations WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable Signed-off-by: qianyi liu --- drive