Module Name: src
Committed By: riastradh
Date: Mon Aug 27 15:32:51 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/drm: drm_module.c
Log Message:
Make sure to create and destroy the lock too...
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/external/bsd/drm2/drm/drm_module.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/drm/drm_module.c
diff -u src/sys/external/bsd/drm2/drm/drm_module.c:1.12 src/sys/external/bsd/drm2/drm/drm_module.c:1.13
--- src/sys/external/bsd/drm2/drm/drm_module.c:1.12 Mon Aug 27 15:31:27 2018
+++ src/sys/external/bsd/drm2/drm/drm_module.c Mon Aug 27 15:32:51 2018
@@ -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 @@ drm_init(void)
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_fini(void)
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);