Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs fix crash in nfs client lookups, dholland says 'my f...



details:   https://anonhg.NetBSD.org/src/rev/43f0bf4af7ca
branches:  trunk
changeset: 782571:43f0bf4af7ca
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Nov 07 02:31:48 2012 +0000

description:
fix crash in nfs client lookups, dholland says 'my fault'

diffstat:

 sys/nfs/nfs_vnops.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r f4a054d41501 -r 43f0bf4af7ca sys/nfs/nfs_vnops.c
--- a/sys/nfs/nfs_vnops.c       Tue Nov 06 23:25:44 2012 +0000
+++ b/sys/nfs/nfs_vnops.c       Wed Nov 07 02:31:48 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_vnops.c,v 1.297 2012/11/05 17:27:39 dholland Exp $ */
+/*     $NetBSD: nfs_vnops.c,v 1.298 2012/11/07 02:31:48 macallan Exp $ */
 
 /*
  * Copyright (c) 1989, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.297 2012/11/05 17:27:39 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.298 2012/11/07 02:31:48 macallan Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_nfs.h"
@@ -847,6 +847,7 @@
 
                if (*vpp == NULLVP) {
                        /* namecache gave us a negative result */
+                       error = ENOENT;
                        goto noentry;
                }
 



Home | Main Index | Thread Index | Old Index