diff options
author | qianyi liu <liuqianyi125@gmail.com> | 2025-03-11 14:02:51 +0800 |
---|---|---|
committer | Philipp Stanner <phasta@kernel.org> | 2025-03-13 09:39:06 +0100 |
commit | a952f1ab696873be124e31ce5ef964d36bce817f (patch) | |
tree | 3645501cabf7bb875c2ce9a00c305b4ceef2578b /net/lapb/lapb_timer.c | |
parent | 12d8f318347b1d4feac48e8ac351d3786af39599 (diff) | |
download | linux-a952f1ab696873be124e31ce5ef964d36bce817f.tar.gz linux-a952f1ab696873be124e31ce5ef964d36bce817f.tar.bz2 linux-a952f1ab696873be124e31ce5ef964d36bce817f.zip |
drm/sched: Fix fence reference count leak
The last_scheduled fence leaks when an entity is being killed and adding
the cleanup callback fails.
Decrement the reference count of prev when dma_fence_add_callback()
fails, ensuring proper balance.
Cc: stable@vger.kernel.org # v6.2+
[phasta: add git tag info for stable kernel]
Fixes: 2fdb8a8f07c2 ("drm/scheduler: rework entity flush, kill and fini")
Signed-off-by: qianyi liu <liuqianyi125@gmail.com>
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250311060251.4041101-1-liuqianyi125@gmail.com
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions