From: Mike Hibler Date: Tue, 1 Feb 1994 12:43:15 +0000 (-0800) Subject: zero the iso_mount struct after allocation X-Git-Tag: BSD-4_4_Lite1-Snapshot-Development~604 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/2d80cfd230d42692c871f58a3ee4bad39c84cfe9 zero the iso_mount struct after allocation SCCS-vsn: sys/isofs/cd9660/cd9660_vfsops.c 8.3 --- diff --git a/usr/src/sys/isofs/cd9660/cd9660_vfsops.c b/usr/src/sys/isofs/cd9660/cd9660_vfsops.c index cdec2fb6f2..1c399ebce6 100644 --- a/usr/src/sys/isofs/cd9660/cd9660_vfsops.c +++ b/usr/src/sys/isofs/cd9660/cd9660_vfsops.c @@ -9,7 +9,7 @@ * * %sccs.include.redist.c% * - * @(#)cd9660_vfsops.c 8.2 (Berkeley) %G% + * @(#)cd9660_vfsops.c 8.3 (Berkeley) %G% */ #include @@ -272,7 +272,8 @@ static iso_mountfs(devvp, mp, p, argp) rootp = (struct iso_directory_record *)pri->root_directory_record; - isomp = (struct iso_mnt *)malloc(sizeof *isomp,M_ISOFSMNT,M_WAITOK); + isomp = malloc(sizeof *isomp, M_ISOFSMNT, M_WAITOK); + bzero((caddr_t)isomp, sizeof *isomp); isomp->logical_block_size = logical_block_size; isomp->volume_space_size = isonum_733 (pri->volume_space_size); bcopy (rootp, isomp->root, sizeof isomp->root);