Module Name: src Committed By: martin Date: Sat Dec 19 20:28:27 UTC 2009
Modified Files: src/sys/kern: vfs_syscalls.c Log Message: Use the kernel space version of the vfs name, not the original userspace pointer. Avoids crashes on archs with completely separate userspace VA. To generate a diff of this commit: cvs rdiff -u -r1.399 -r1.400 src/sys/kern/vfs_syscalls.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/vfs_syscalls.c diff -u src/sys/kern/vfs_syscalls.c:1.399 src/sys/kern/vfs_syscalls.c:1.400 --- src/sys/kern/vfs_syscalls.c:1.399 Sun Aug 9 22:49:00 2009 +++ src/sys/kern/vfs_syscalls.c Sat Dec 19 20:28:27 2009 @@ -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)