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/linux drm: Another missing spin_lock_d...



details:   https://anonhg.NetBSD.org/src/rev/9d3f6039e663
branches:  trunk
changeset: 1028947:9d3f6039e663
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:33:26 2021 +0000

description:
drm: Another missing spin_lock_destroy.

diffstat:

 sys/external/bsd/drm2/linux/linux_dma_fence_array.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 788b505adf7c -r 9d3f6039e663 sys/external/bsd/drm2/linux/linux_dma_fence_array.c
--- a/sys/external/bsd/drm2/linux/linux_dma_fence_array.c       Sun Dec 19 12:33:19 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_dma_fence_array.c       Sun Dec 19 12:33:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_dma_fence_array.c,v 1.2 2021/12/19 12:23:50 riastradh Exp $      */
+/*     $NetBSD: linux_dma_fence_array.c,v 1.3 2021/12/19 12:33:26 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_dma_fence_array.c,v 1.2 2021/12/19 12:23:50 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_dma_fence_array.c,v 1.3 2021/12/19 12:33:26 riastradh Exp $");
 
 #include <sys/systm.h>
 
@@ -139,6 +139,7 @@
                dma_fence_put(A->fences[i]);
 
        kfree(A->fences);
+       spin_lock_destroy(&A->dfa_lock);
        dma_fence_free(fence);
 }
 



Home | Main Index | Thread Index | Old Index