Module Name: src Committed By: pgoyette Date: Sat Dec 5 00:51:43 UTC 2015
Modified Files: src/sys/kern: sysv_ipc.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/kern/sysv_ipc.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/sysv_ipc.c diff -u src/sys/kern/sysv_ipc.c:1.31 src/sys/kern/sysv_ipc.c:1.32 --- src/sys/kern/sysv_ipc.c:1.31 Thu Dec 3 02:51:00 2015 +++ src/sys/kern/sysv_ipc.c Sat Dec 5 00:51:42 2015 @@ -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 @@ sysvipcfini(void) KASSERT(sysvipc_listener != NULL); kauth_unlisten_scope(sysvipc_listener); + sysvipc_listener = NULL; } void