Module Name: src
Committed By: jmcneill
Date: Tue Oct 18 00:07:45 UTC 2011
Modified Files:
src/sys/arch/x86/x86: vmt.c
Log Message:
don't allow module autounload
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x86/x86/vmt.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/arch/x86/x86/vmt.c
diff -u src/sys/arch/x86/x86/vmt.c:1.2 src/sys/arch/x86/x86/vmt.c:1.3
--- src/sys/arch/x86/x86/vmt.c:1.2 Mon Oct 17 23:25:10 2011
+++ src/sys/arch/x86/x86/vmt.c Tue Oct 18 00:07:45 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: vmt.c,v 1.2 2011/10/17 23:25:10 jmcneill Exp $ */
+/* $NetBSD: vmt.c,v 1.3 2011/10/18 00:07:45 jmcneill Exp $ */
/* $OpenBSD: vmt.c,v 1.11 2011/01/27 21:29:25 dtucker Exp $ */
/*
@@ -1207,6 +1207,9 @@ vmt_modcmd(modcmd_t cmd, void *aux)
cfattach_ioconf_vmt, cfdata_ioconf_vmt);
#endif
break;
+ case MODULE_CMD_AUTOUNLOAD:
+ error = EBUSY;
+ break;
default:
error = ENOTTY;
break;