Module Name: src
Committed By: dyoung
Date: Tue Sep 29 22:40:15 UTC 2009
Modified Files:
src/sys/kern: init_main.c
Log Message:
#include "drvctl.h" for the NDRVCTL definition. Without the NDRVCTL
definition, drvctl_init() is not called, the drvctl_eventq is not
initialized, and the kernel will panic in devmon_insert() when a
device is detached.
Thanks to Jared McNeill for pointing out the panic.
To generate a diff of this commit:
cvs rdiff -u -r1.401 -r1.402 src/sys/kern/init_main.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/init_main.c
diff -u src/sys/kern/init_main.c:1.401 src/sys/kern/init_main.c:1.402
--- src/sys/kern/init_main.c:1.401 Mon Sep 21 12:14:46 2009
+++ src/sys/kern/init_main.c Tue Sep 29 22:40:15 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: init_main.c,v 1.401 2009/09/21 12:14:46 pooka Exp $ */
+/* $NetBSD: init_main.c,v 1.402 2009/09/29 22:40:15 dyoung Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.401 2009/09/21 12:14:46 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.402 2009/09/29 22:40:15 dyoung Exp $");
#include "opt_ddb.h"
#include "opt_ipsec.h"
@@ -113,6 +113,7 @@
#include "opt_compat_netbsd.h"
#include "opt_wapbl.h"
+#include "drvctl.h"
#include "ksyms.h"
#include "rnd.h"
#include "sysmon_envsys.h"