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/drm Make sure to create and destroy th...
details: https://anonhg.NetBSD.org/src/rev/1c7ef8e4759d
branches: trunk
changeset: 993128:1c7ef8e4759d
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 15:32:51 2018 +0000
description:
Make sure to create and destroy the lock too...
diffstat:
sys/external/bsd/drm2/drm/drm_module.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 608cc721ad23 -r 1c7ef8e4759d sys/external/bsd/drm2/drm/drm_module.c
--- a/sys/external/bsd/drm2/drm/drm_module.c Mon Aug 27 15:32:39 2018 +0000
+++ b/sys/external/bsd/drm2/drm/drm_module.c Mon Aug 27 15:32:51 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_module.c,v 1.12 2018/08/27 15:31:27 riastradh Exp $ */
+/* $NetBSD: drm_module.c,v 1.13 2018/08/27 15:32:51 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_module.c,v 1.12 2018/08/27 15:31:27 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_module.c,v 1.13 2018/08/27 15:32:51 riastradh Exp $");
#include <sys/types.h>
#include <sys/condvar.h>
@@ -84,6 +84,7 @@
spin_lock_init(&drm_minor_lock);
idr_init(&drm_minors_idr);
linux_mutex_init(&drm_global_mutex);
+ mutex_init(&set_unique_hook.lock, MUTEX_DEFAULT, IPL_NONE);
drm_connector_ida_init();
drm_global_init();
drm_sysctl_init(&drm_def);
@@ -113,6 +114,7 @@
drm_sysctl_fini(&drm_def);
drm_global_release();
drm_connector_ida_destroy();
+ mutex_destroy(&set_unique_hook.lock);
linux_mutex_destroy(&drm_global_mutex);
idr_destroy(&drm_minors_idr);
spin_lock_destroy(&drm_minor_lock);
Home |
Main Index |
Thread Index |
Old Index