Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Use the kernel space version of the vfs name, not t...



details:   https://anonhg.NetBSD.org/src/rev/34e28c6a4409
branches:  trunk
changeset: 750188:34e28c6a4409
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Dec 19 20:28:27 2009 +0000

description:
Use the kernel space version of the vfs name, not the original userspace
pointer. Avoids crashes on archs with completely separate userspace VA.

diffstat:

 sys/kern/vfs_syscalls.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9f245e96f941 -r 34e28c6a4409 sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Sat Dec 19 19:27:53 2009 +0000
+++ b/sys/kern/vfs_syscalls.c   Sat Dec 19 20:28:27 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.c,v 1.399 2009/08/09 22:49:00 haad Exp $  */
+/*     $NetBSD: vfs_syscalls.c,v 1.400 2009/12/19 20:28:27 martin Exp $        */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.399 2009/08/09 22:49:00 haad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.400 2009/12/19 20:28:27 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_fileassoc.h"
@@ -279,7 +279,7 @@
 
        /* If we can autoload a vfs module, try again */
        mutex_enter(&module_lock);
-       (void)module_autoload(fstype, MODULE_CLASS_VFS);
+       (void)module_autoload(fstypename, MODULE_CLASS_VFS);
        mutex_exit(&module_lock);
 
        if ((*vfsops = vfs_getopsbyname(fstypename)) != NULL)



Home | Main Index | Thread Index | Old Index