summaryrefslogtreecommitdiff
path: root/sys/ufs/ext2fs/ext2fs_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ufs/ext2fs/ext2fs_vfsops.c')
-rw-r--r--sys/ufs/ext2fs/ext2fs_vfsops.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vfsops.c b/sys/ufs/ext2fs/ext2fs_vfsops.c
index 5576f7115b4..163923c8d38 100644
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_vfsops.c,v 1.48 2007/06/17 20:15:25 jasper Exp $ */
+/* $OpenBSD: ext2fs_vfsops.c,v 1.49 2007/10/06 23:50:55 krw Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.1 1997/06/11 09:34:07 bouyer Exp $ */
/*
@@ -522,10 +522,9 @@ ext2fs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p)
error = ext2fs_checksb(fs, ronly);
if (error)
goto out;
- ump = malloc(sizeof *ump, M_UFSMNT, M_WAITOK);
- memset((caddr_t)ump, 0, sizeof *ump);
- ump->um_e2fs = malloc(sizeof(struct m_ext2fs), M_UFSMNT, M_WAITOK);
- memset((caddr_t)ump->um_e2fs, 0, sizeof(struct m_ext2fs));
+ ump = malloc(sizeof *ump, M_UFSMNT, M_WAITOK | M_ZERO);
+ ump->um_e2fs = malloc(sizeof(struct m_ext2fs), M_UFSMNT,
+ M_WAITOK | M_ZERO);
e2fs_sbload((struct ext2fs*)bp->b_data, &ump->um_e2fs->e2fs);
brelse(bp);
bp = NULL;