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/umapfs Pull up revision 1.28 (requested by y...
details: https://anonhg.NetBSD.org/src/rev/c1ebac128818
branches: netbsd-2-0
changeset: 561485:c1ebac128818
user: tron <tron%NetBSD.org@localhost>
date: Mon Jun 21 10:13:13 2004 +0000
description:
Pull up revision 1.28 (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/umapfs/umap_vnops.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r c22dbd388137 -r c1ebac128818 sys/miscfs/umapfs/umap_vnops.c
--- a/sys/miscfs/umapfs/umap_vnops.c Mon Jun 21 10:12:49 2004 +0000
+++ b/sys/miscfs/umapfs/umap_vnops.c Mon Jun 21 10:13:13 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umap_vnops.c,v 1.24.2.2 2004/06/21 10:06:49 tron Exp $ */
+/* $NetBSD: umap_vnops.c,v 1.24.2.3 2004/06/21 10:13:13 tron Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umap_vnops.c,v 1.24.2.2 2004/06/21 10:06:49 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umap_vnops.c,v 1.24.2.3 2004/06/21 10:13:13 tron Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -363,6 +363,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 && (cnf & ISLASTCN) &&
(dvp->v_mount->mnt_flag & MNT_RDONLY) &&
Home |
Main Index |
Thread Index |
Old Index