Source-Changes-HG archive

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

[src/trunk]: src/sys/kern When unloading the module, clear the address of the...



details:   https://anonhg.NetBSD.org/src/rev/6ea94efba882
branches:  trunk
changeset: 812219:6ea94efba882
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Dec 05 00:51:42 2015 +0000

description:
When unloading the module, clear the address of the kauth_listener
after removing the listener.  This enables the module to (attempt to)
initialize again without hitting the KASSERT() is sysvipc_init().

XXX This will allow standard kernels to boot successfully.  However,
XXX module initializtion is still broken.

diffstat:

 sys/kern/sysv_ipc.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 904b5005b474 -r 6ea94efba882 sys/kern/sysv_ipc.c
--- a/sys/kern/sysv_ipc.c       Fri Dec 04 23:54:06 2015 +0000
+++ b/sys/kern/sysv_ipc.c       Sat Dec 05 00:51:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysv_ipc.c,v 1.31 2015/12/03 02:51:00 pgoyette Exp $   */
+/*     $NetBSD: sysv_ipc.c,v 1.32 2015/12/05 00:51:42 pgoyette Exp $   */
 
 /*-
  * Copyright (c) 1998, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysv_ipc.c,v 1.31 2015/12/03 02:51:00 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysv_ipc.c,v 1.32 2015/12/05 00:51:42 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sysv.h"
@@ -356,6 +356,7 @@
 
        KASSERT(sysvipc_listener != NULL);
        kauth_unlisten_scope(sysvipc_listener);
+       sysvipc_listener = NULL;
 }
 
 void



Home | Main Index | Thread Index | Old Index