Module Name:    src
Committed By:   maxv
Date:           Mon Jun 22 16:21:29 UTC 2020

Modified Files:
        src/sys/kern: kern_lwp.c

Log Message:
Permanent node doesn't need a log, plus the log gets leaked anyway. Found
by kLSan.


To generate a diff of this commit:
cvs rdiff -u -r1.241 -r1.242 src/sys/kern/kern_lwp.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_lwp.c
diff -u src/sys/kern/kern_lwp.c:1.241 src/sys/kern/kern_lwp.c:1.242
--- src/sys/kern/kern_lwp.c:1.241	Sat Jun  6 22:26:47 2020
+++ src/sys/kern/kern_lwp.c	Mon Jun 22 16:21:29 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_lwp.c,v 1.241 2020/06/06 22:26:47 ad Exp $	*/
+/*	$NetBSD: kern_lwp.c,v 1.242 2020/06/22 16:21:29 maxv Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2006, 2007, 2008, 2009, 2019, 2020
@@ -217,7 +217,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.241 2020/06/06 22:26:47 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.242 2020/06/22 16:21:29 maxv Exp $");
 
 #include "opt_ddb.h"
 #include "opt_lockdebug.h"
@@ -325,9 +325,7 @@ sysctl_kern_maxlwp(SYSCTLFN_ARGS)
 static void
 sysctl_kern_lwp_setup(void)
 {
-	struct sysctllog *clog = NULL;
-
-	sysctl_createv(&clog, 0, NULL, NULL,
+	sysctl_createv(NULL, 0, NULL, NULL,
 		       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
 		       CTLTYPE_INT, "maxlwp",
 		       SYSCTL_DESCR("Maximum number of simultaneous threads"),

Reply via email to