Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/common Don't ignore EBUSY from disestablish or we...



details:   https://anonhg.NetBSD.org/src/rev/34cc4f3dcb26
branches:  trunk
changeset: 460625:34cc4f3dcb26
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 28 23:32:15 2019 +0000

description:
Don't ignore EBUSY from disestablish or we can crash by unloading busy
syscalls.

diffstat:

 sys/compat/common/compat_90_mod.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (39 lines):

diff -r d79afc2a9ddf -r 34cc4f3dcb26 sys/compat/common/compat_90_mod.c
--- a/sys/compat/common/compat_90_mod.c Mon Oct 28 22:52:43 2019 +0000
+++ b/sys/compat/common/compat_90_mod.c Mon Oct 28 23:32:15 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_90_mod.c,v 1.1 2019/09/22 22:59:38 christos Exp $       */
+/*     $NetBSD: compat_90_mod.c,v 1.2 2019/10/28 23:32:15 christos Exp $       */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_90_mod.c,v 1.1 2019/09/22 22:59:38 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_90_mod.c,v 1.2 2019/10/28 23:32:15 christos Exp $");
 
 #include <sys/systm.h>
 #include <sys/module.h>
@@ -50,18 +50,14 @@
 compat_90_init(void)
 {
 
-       vfs_syscalls_90_init();
-
-       return 0;
+       return vfs_syscalls_90_init();
 }
 
 int
 compat_90_fini(void)
 {
 
-       vfs_syscalls_90_fini();
-
-       return 0;
+       return vfs_syscalls_90_fini();
 }
 
 MODULE(MODULE_CLASS_EXEC, compat_90, NULL);



Home | Main Index | Thread Index | Old Index