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/ttm Destroy glob->lock if we ...



details:   https://anonhg.NetBSD.org/src/rev/090a4d6b79d2
branches:  trunk
changeset: 364759:090a4d6b79d2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:41:10 2018 +0000

description:
Destroy glob->lock if we init it.

diffstat:

 sys/external/bsd/drm2/dist/drm/ttm/ttm_memory.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 967a6f298ed1 -r 090a4d6b79d2 sys/external/bsd/drm2/dist/drm/ttm/ttm_memory.c
--- a/sys/external/bsd/drm2/dist/drm/ttm/ttm_memory.c   Mon Aug 27 14:40:56 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/ttm/ttm_memory.c   Mon Aug 27 14:41:10 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ttm_memory.c,v 1.3 2018/08/27 04:58:37 riastradh Exp $ */
+/*     $NetBSD: ttm_memory.c,v 1.4 2018/08/27 14:41:10 riastradh Exp $ */
 
 /**************************************************************************
  *
@@ -28,7 +28,7 @@
  **************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ttm_memory.c,v 1.3 2018/08/27 04:58:37 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ttm_memory.c,v 1.4 2018/08/27 14:41:10 riastradh Exp $");
 
 #define pr_fmt(fmt) "[TTM] " fmt
 
@@ -454,6 +454,7 @@
                kobject_put(&zone->kobj);
 #endif
                        }
+       spin_lock_destroy(&glob->lock);
 #ifdef __NetBSD__
        kfree(glob);
 #else



Home | Main Index | Thread Index | Old Index