Module Name: src
Committed By: hannken
Date: Thu Dec 28 12:49:06 UTC 2023
Modified Files:
src/sys/kern: kern_fileassoc.c
Log Message:
Initialize mutex fileassoc_global.lock.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/kern/kern_fileassoc.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/kern/kern_fileassoc.c
diff -u src/sys/kern/kern_fileassoc.c:1.37 src/sys/kern/kern_fileassoc.c:1.38
--- src/sys/kern/kern_fileassoc.c:1.37 Wed Aug 2 07:11:31 2023
+++ src/sys/kern/kern_fileassoc.c Thu Dec 28 12:49:06 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_fileassoc.c,v 1.37 2023/08/02 07:11:31 riastradh Exp $ */
+/* $NetBSD: kern_fileassoc.c,v 1.38 2023/12/28 12:49:06 hannken Exp $ */
/*-
* Copyright (c) 2006 Elad Efrat <[email protected]>
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_fileassoc.c,v 1.37 2023/08/02 07:11:31 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_fileassoc.c,v 1.38 2023/12/28 12:49:06 hannken Exp $");
#include "opt_fileassoc.h"
@@ -219,6 +219,8 @@ fileassoc_init(void)
}
fileassoc_domain = specificdata_domain_create();
+ mutex_init(&fileassoc_global.lock, MUTEX_DEFAULT, IPL_NONE);
+
return 0;
}