]> Gentwo Git Trees - linux/.git/commitdiff
drm/xe: Fix duplicated put due to merge resolution
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 4 Dec 2025 20:20:59 +0000 (21:20 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Dec 2025 22:13:04 +0000 (14:13 -0800)
An incorrect backmerge resolution resulted in an
incorrect duplicate put. Fix.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Closes: https://lore.kernel.org/dri-devel/CAHk-=whaiMayMx=LrL7P119MLBX6exM_mEu4S2uBRT+xWQ-mbA@mail.gmail.com/
Fixes: Fixes: ce0478b02ed2 ("Merge tag 'v6.18-rc6' into drm-next")
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/xe/xe_exec_queue.c

index 12adfc3a05473ec3765bbae25470822b676ae6a0..8724f8de67e2738dffef72aeab2a67d8cfe35656 100644 (file)
@@ -391,9 +391,6 @@ void xe_exec_queue_destroy(struct kref *ref)
 
        xe_assert(gt_to_xe(q->gt), atomic_read(&q->job_cnt) == 0);
 
-       if (q->ufence_syncobj)
-               drm_syncobj_put(q->ufence_syncobj);
-
        if (q->ufence_syncobj)
                drm_syncobj_put(q->ufence_syncobj);