Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/miscfs/genfs Pull up revision 1.18 (requested by ya...



details:   https://anonhg.NetBSD.org/src/rev/c22dbd388137
branches:  netbsd-2-0
changeset: 561484:c22dbd388137
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 21 10:12:49 2004 +0000

description:
Pull up revision 1.18 (requested by yamt in ticket #514):
umap_lookup/layer_lookup: NULL out *ap->a_vpp after calling
underlying filesystem because some caller including lookup()
assume that *vpp is NULL on error.

diffstat:

 sys/miscfs/genfs/layer_vnops.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r bff7d52dd5b0 -r c22dbd388137 sys/miscfs/genfs/layer_vnops.c
--- a/sys/miscfs/genfs/layer_vnops.c    Mon Jun 21 10:10:09 2004 +0000
+++ b/sys/miscfs/genfs/layer_vnops.c    Mon Jun 21 10:12:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: layer_vnops.c,v 1.14.2.2 2004/06/21 10:06:07 tron Exp $        */
+/*     $NetBSD: layer_vnops.c,v 1.14.2.3 2004/06/21 10:12:49 tron Exp $        */
 
 /*
  * Copyright (c) 1999 National Aeronautics & Space Administration
@@ -67,7 +67,7 @@
  *
  * Ancestors:
  *     @(#)lofs_vnops.c        1.2 (Berkeley) 6/18/92
- *     $Id: layer_vnops.c,v 1.14.2.2 2004/06/21 10:06:07 tron Exp $
+ *     $Id: layer_vnops.c,v 1.14.2.3 2004/06/21 10:12:49 tron Exp $
  *     ...and...
  *     @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
  */
@@ -232,7 +232,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: layer_vnops.c,v 1.14.2.2 2004/06/21 10:06:07 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: layer_vnops.c,v 1.14.2.3 2004/06/21 10:12:49 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -434,6 +434,7 @@
        ap->a_dvp = ldvp;
        error = VCALL(ldvp, ap->a_desc->vdesc_offset, ap);
        vp = *ap->a_vpp;
+       *ap->a_vpp = NULL;
 
        if (error == EJUSTRETURN && (flags & ISLASTCN) &&
            (dvp->v_mount->mnt_flag & MNT_RDONLY) &&



Home | Main Index | Thread Index | Old Index