Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 i915: Destroy lock in fe...



details:   https://anonhg.NetBSD.org/src/rev/104dfca8674f
branches:  trunk
changeset: 1028860:104dfca8674f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:13:37 2021 +0000

description:
i915: Destroy lock in fence before freeing fence itself.


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_sw_fence_work.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 18a7cdc6d8a5 -r 104dfca8674f sys/external/bsd/drm2/dist/drm/i915/i915_sw_fence_work.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_sw_fence_work.c  Sun Dec 19 12:13:31 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_sw_fence_work.c  Sun Dec 19 12:13:37 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_sw_fence_work.c,v 1.3 2021/12/19 12:08:02 riastradh Exp $ */
+/*     $NetBSD: i915_sw_fence_work.c,v 1.4 2021/12/19 12:13:37 riastradh Exp $ */
 
 // SPDX-License-Identifier: MIT
 
@@ -7,7 +7,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_sw_fence_work.c,v 1.3 2021/12/19 12:08:02 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_sw_fence_work.c,v 1.4 2021/12/19 12:13:37 riastradh Exp $");
 
 #include "i915_sw_fence_work.h"
 
@@ -76,8 +76,8 @@
        i915_sw_fence_fini(&f->chain);
 
        BUILD_BUG_ON(offsetof(typeof(*f), dma));
+       spin_lock_destroy(&f->lock);
        dma_fence_free(&f->dma);
-       spin_lock_destroy(&f->lock);
 }
 
 static const struct dma_fence_ops fence_ops = {



Home | Main Index | Thread Index | Old Index