Module Name: src
Committed By: pooka
Date: Thu Aug 12 09:41:11 UTC 2010
Modified Files:
src/sys/nfs: nfs_vfsops.c
Log Message:
Do not return a garbage vnode in vpp if fhtovp fails.
Fixes PR kern/43745 for nfs.
To generate a diff of this commit:
cvs rdiff -u -r1.216 -r1.217 src/sys/nfs/nfs_vfsops.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/nfs/nfs_vfsops.c
diff -u src/sys/nfs/nfs_vfsops.c:1.216 src/sys/nfs/nfs_vfsops.c:1.217
--- src/sys/nfs/nfs_vfsops.c:1.216 Wed Jul 21 17:52:13 2010
+++ src/sys/nfs/nfs_vfsops.c Thu Aug 12 09:41:10 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_vfsops.c,v 1.216 2010/07/21 17:52:13 hannken Exp $ */
+/* $NetBSD: nfs_vfsops.c,v 1.217 2010/08/12 09:41:10 pooka Exp $ */
/*
* Copyright (c) 1989, 1993, 1995
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.216 2010/07/21 17:52:13 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.217 2010/08/12 09:41:10 pooka Exp $");
#if defined(_KERNEL_OPT)
#include "opt_nfs.h"
@@ -1104,6 +1104,7 @@
error = VOP_GETATTR(*vpp, &va, kauth_cred_get());
if (error != 0) {
vput(*vpp);
+ *vpp = NULLVP;
}
return error;
}