Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/common Reset sendsig_sigcontext_vec at fini to av...



details:   https://anonhg.NetBSD.org/src/rev/4e6709a5e5a9
branches:  trunk
changeset: 752740:4e6709a5e5a9
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Mar 05 16:55:56 2010 +0000

description:
Reset sendsig_sigcontext_vec at fini to avoid having it point at
garbage and to allow re-init of the module (if DIAGNOSTIC).

diffstat:

 sys/compat/common/compat_mod.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 0e2999dffd6f -r 4e6709a5e5a9 sys/compat/common/compat_mod.c
--- a/sys/compat/common/compat_mod.c    Fri Mar 05 16:30:05 2010 +0000
+++ b/sys/compat/common/compat_mod.c    Fri Mar 05 16:55:56 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_mod.c,v 1.10 2009/12/21 15:13:13 njoly Exp $    */
+/*     $NetBSD: compat_mod.c,v 1.11 2010/03/05 16:55:56 pooka Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.10 2009/12/21 15:13:13 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.11 2010/03/05 16:55:56 pooka Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -286,6 +286,7 @@
                if (p != NULL) {
                        return EBUSY;
                }
+               sendsig_sigcontext_vec = NULL;
 #endif
                /* Unlink the system calls. */
                error = syscall_disestablish(NULL, compat_syscalls);



Home | Main Index | Thread Index | Old Index