summaryrefslogtreecommitdiff
path: root/sys/adosfs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-13 05:23:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-13 05:23:20 +0000
commit456310b08535d37855e7944dde48769d26b096db (patch)
treebc24b98666da434587b829274076f276df48ee04 /sys/adosfs
parented5e9a8a2df85c0f61f12456050ca2dfb8c35ddc (diff)
bzero adosfsmount so that mountd delete does not crash machine; from osymh@gemini.oscs.montana.edu; netbsd pr#1720
Diffstat (limited to 'sys/adosfs')
-rw-r--r--sys/adosfs/advfsops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/adosfs/advfsops.c b/sys/adosfs/advfsops.c
index 069512eead3..4905eccbd1b 100644
--- a/sys/adosfs/advfsops.c
+++ b/sys/adosfs/advfsops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: advfsops.c,v 1.14 1995/08/18 15:14:37 chopps Exp $ */
+/* $NetBSD: advfsops.c,v 1.14.2.1 1995/11/10 16:05:16 chopps Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -165,6 +165,7 @@ adosfs_mountfs(devvp, mp, p)
parp = &dl.d_partitions[part];
amp = malloc(sizeof(struct adosfsmount), M_ADOSFSMNT, M_WAITOK);
+ bzero((char *)amp, (u_long)sizeof(struct adosfsmount));
amp->mp = mp;
amp->startb = parp->p_offset;
amp->endb = parp->p_offset + parp->p_size;