View | Details | Raw Unified | Return to bug 206056
Collapse All | Expand All

(-)b/sys/fs/ext2fs/ext2_vfsops.c (-1 / +1 lines)
Lines 590-596 ext2_mountfs(struct vnode *devvp, struct mount *mp) Link Here
590
	 * while Linux keeps the super block in a locked buffer.
590
	 * while Linux keeps the super block in a locked buffer.
591
	 */
591
	 */
592
	ump->um_e2fs = malloc(sizeof(struct m_ext2fs),
592
	ump->um_e2fs = malloc(sizeof(struct m_ext2fs),
593
		M_EXT2MNT, M_WAITOK);
593
		M_EXT2MNT, M_WAITOK | M_ZERO);
594
	ump->um_e2fs->e2fs = malloc(sizeof(struct ext2fs),
594
	ump->um_e2fs->e2fs = malloc(sizeof(struct ext2fs),
595
		M_EXT2MNT, M_WAITOK);
595
		M_EXT2MNT, M_WAITOK);
596
	mtx_init(EXT2_MTX(ump), "EXT2FS", "EXT2FS Lock", MTX_DEF);
596
	mtx_init(EXT2_MTX(ump), "EXT2FS", "EXT2FS Lock", MTX_DEF);

Return to bug 206056