Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/compat/common Pull up following revision(s) (requeste...



details:   https://anonhg.NetBSD.org/src/rev/47be211512c8
branches:  netbsd-9
changeset: 1001339:47be211512c8
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Dec 29 09:36:27 2019 +0000

description:
Pull up following revision(s) (requested by pgoyette in ticket #588):
        sys/compat/common/compat_30_mod.c: revision 1.3
For the built-in COMPAT_30 module code, make sure to initialize the
uipc_syscalls_30 stuff, notably to include compat_30_socket().
PR kern/54804
XXX Pullup-9 XXX

diffstat:

 sys/compat/common/compat_30_mod.c |  22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diffs (59 lines):

diff -r 2dd2d8648c02 -r 47be211512c8 sys/compat/common/compat_30_mod.c
--- a/sys/compat/common/compat_30_mod.c Sun Dec 29 09:33:43 2019 +0000
+++ b/sys/compat/common/compat_30_mod.c Sun Dec 29 09:36:27 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_30_mod.c,v 1.2 2019/01/27 02:08:39 pgoyette Exp $       */
+/*     $NetBSD: compat_30_mod.c,v 1.2.6.1 2019/12/29 09:36:27 martin Exp $     */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_30_mod.c,v 1.2 2019/01/27 02:08:39 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_30_mod.c,v 1.2.6.1 2019/12/29 09:36:27 martin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -66,6 +66,12 @@
                vfs_syscalls_30_fini();
                return error;
        }
+       error = uipc_syscalls_30_init();
+       if (error != 0) {
+               kern_time_30_fini();
+               vfs_syscalls_30_fini();
+               return error;
+       }
        bio_30_init();
        vnd_30_init();
        usb_30_init();
@@ -82,18 +88,24 @@
        vnd_30_fini();
        bio_30_fini();
 
+       error = uipc_syscalls_30_fini();
+       if (error != 0)
+               goto err1;
+
        error = kern_time_30_fini();
        if (error != 0)
-               goto err1;
+               goto err2;
 
        error = vfs_syscalls_30_fini();
        if (error != 0)
-               goto err2;
+               goto err3;
 
        return 0;
 
+ err3:
+       kern_time_30_init();
  err2:
-       kern_time_30_init();
+       uipc_syscalls_30_init();
  err1:
        bio_30_init();
        vnd_30_init();



Home | Main Index | Thread Index | Old Index