Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 don't allow module autounload



details:   https://anonhg.NetBSD.org/src/rev/dc02ae9476ea
branches:  trunk
changeset: 770461:dc02ae9476ea
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Oct 18 00:07:45 2011 +0000

description:
don't allow module autounload

diffstat:

 sys/arch/x86/x86/vmt.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 26f4014e0807 -r dc02ae9476ea sys/arch/x86/x86/vmt.c
--- a/sys/arch/x86/x86/vmt.c    Mon Oct 17 23:54:01 2011 +0000
+++ b/sys/arch/x86/x86/vmt.c    Tue Oct 18 00:07:45 2011 +0000
@@ -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 @@
                    cfattach_ioconf_vmt, cfdata_ioconf_vmt);
 #endif
                break;
+       case MODULE_CMD_AUTOUNLOAD:
+               error = EBUSY;
+               break;
        default:
                error = ENOTTY;
                break;



Home | Main Index | Thread Index | Old Index