summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/union
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1998-03-17 08:47:50 +0000
committerkato <kato@FreeBSD.org>1998-03-17 08:47:50 +0000
commit0b339177194e5d5af13b114350ca29f28895257b (patch)
treeab1f7d13a9ff986194a6eccec3556de1a93a0ef6 /sys/miscfs/union
parent4f11d35789faab61427d8d0ac0b59bd481f2643e (diff)
downloadFreeBSD-src-0b339177194e5d5af13b114350ca29f28895257b.zip
FreeBSD-src-0b339177194e5d5af13b114350ca29f28895257b.tar.gz
If lowervp is NULLVP, vap was clobbered.
Submitted by: Naofumi Honda <honda@Kururu.math.sci.hokudai.ac.jp> Obtained from: NetBSD/pc98
Diffstat (limited to 'sys/miscfs/union')
-rw-r--r--sys/miscfs/union/union_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/union/union_vnops.c b/sys/miscfs/union/union_vnops.c
index 627123c..e9a7a76 100644
--- a/sys/miscfs/union/union_vnops.c
+++ b/sys/miscfs/union/union_vnops.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)union_vnops.c 8.32 (Berkeley) 6/23/95
- * $Id: union_vnops.c,v 1.54 1998/02/10 03:32:07 kato Exp $
+ * $Id: union_vnops.c,v 1.55 1998/02/26 03:23:56 kato Exp $
*/
#include <sys/param.h>
@@ -773,7 +773,7 @@ union_getattr(ap)
if (vp == NULLVP) {
vp = un->un_lowervp;
- } else if (vp->v_type == VDIR) {
+ } else if (vp->v_type == VDIR && un->un_lowervp != NULLVP) {
vp = un->un_lowervp;
vap = &va;
} else {
OpenPOWER on IntegriCloud