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/gem i915: Fix destroy/fr...



details:   https://anonhg.NetBSD.org/src/rev/e9c4547943ec
branches:  trunk
changeset: 1028968:e9c4547943ec
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:36:15 2021 +0000

description:
i915: Fix destroy/free order for i915 gem stub fence.

diffstat:

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

diffs (28 lines):

diff -r 2a489092d9d4 -r e9c4547943ec sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_fence.c
--- a/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_fence.c  Sun Dec 19 12:36:08 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_fence.c  Sun Dec 19 12:36:15 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem_fence.c,v 1.3 2021/12/19 11:30:56 riastradh Exp $     */
+/*     $NetBSD: i915_gem_fence.c,v 1.4 2021/12/19 12:36:15 riastradh Exp $     */
 
 /*
  * SPDX-License-Identifier: MIT
@@ -7,7 +7,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem_fence.c,v 1.3 2021/12/19 11:30:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem_fence.c,v 1.4 2021/12/19 12:36:15 riastradh Exp $");
 
 #include "i915_drv.h"
 #include "i915_gem_object.h"
@@ -53,8 +53,8 @@
        i915_sw_fence_fini(&stub->chain);
 
        BUILD_BUG_ON(offsetof(typeof(*stub), dma));
+       spin_lock_destroy(&stub->lock);
        dma_fence_free(&stub->dma);
-       spin_lock_destroy(&stub->lock);
 }
 
 static const struct dma_fence_ops stub_fence_ops = {



Home | Main Index | Thread Index | Old Index