Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/sys/kern Properly return error when name...



details:   https://anonhg.NetBSD.org/src/rev/e7a5440c182a
branches:  trunk
changeset: 748047:e7a5440c182a
user:      haad <haad%NetBSD.org@localhost>
date:      Sun Oct 11 10:54:52 2009 +0000

description:
Properly return error when namei_kernel_simple fails.

diffstat:

 external/cddl/osnet/sys/kern/vfs.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6972e30a6352 -r e7a5440c182a external/cddl/osnet/sys/kern/vfs.c
--- a/external/cddl/osnet/sys/kern/vfs.c        Sun Oct 11 10:00:10 2009 +0000
+++ b/external/cddl/osnet/sys/kern/vfs.c        Sun Oct 11 10:54:52 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs.c,v 1.1 2009/08/07 20:57:57 haad Exp $     */
+/*     $NetBSD: vfs.c,v 1.2 2009/10/11 10:54:52 haad Exp $     */
 
 /*-
  * Copyright (c) 2006-2007 Pawel Jakub Dawidek <pjd%FreeBSD.org@localhost>
@@ -51,7 +51,7 @@
 
        KASSERT(dirvpp == NULL);
 
-       namei_simple_kernel(dirname,  NSM_FOLLOW_NOEMULROOT, compvpp);
+       error = namei_simple_kernel(dirname,  NSM_FOLLOW_NOEMULROOT, compvpp);
        
        return error;
 }



Home | Main Index | Thread Index | Old Index