The last_scheduled fence leaked when an entity was being killed and adding its callback failed.
Decrement the reference count of prev when dma_fence_add_callback() fails, ensuring proper balance.
Cc: stable@vger.kernel.org Fixes: 2fdb8a8f07c2 ("drm/scheduler: rework entity flush, kill and fini") Signed-off-by: qianyi liu liuqianyi125@gmail.com
From: qianyi liu liuqianyi125@gmail.com
The last_scheduled fence leaked when an entity was being killed and adding its callback failed.
Decrement the reference count of prev when dma_fence_add_callback() fails, ensuring proper balance.
Cc: stable@vger.kernel.org Fixes: 2fdb8a8f07c2 ("drm/scheduler: rework entity flush, kill and fini") Signed-off-by: qianyi liu liuqianyi125@gmail.com
@Matt: since you in principle agreed with this patch, could you give it an official RB?
I could then take it [but will probably rephrase some nits in the commit message]
Hello,
This patch was submitted a while back but hasn't seen any updates—just a kindly ping.
Best regards. QianYi.