summaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-01-11 19:25:43 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-01-11 19:25:43 +0000
commitdaf884fa9f466831ff8ed9c4004a8d7b4bb021b4 (patch)
tree91679d07290552dee4d9957b5c4ed2d3ff78b524 /sys/fs
parente813d9d7fa641d4b7ec43227293d0c8adb7c1270 (diff)
downloadsrc-test2-daf884fa9f466831ff8ed9c4004a8d7b4bb021b4.tar.gz
src-test2-daf884fa9f466831ff8ed9c4004a8d7b4bb021b4.zip
Notes
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/ext2fs/ext2_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_vfsops.c b/sys/fs/ext2fs/ext2_vfsops.c
index ce943ea047bd..5339aa2ea570 100644
--- a/sys/fs/ext2fs/ext2_vfsops.c
+++ b/sys/fs/ext2fs/ext2_vfsops.c
@@ -590,7 +590,7 @@ ext2_mountfs(struct vnode *devvp, struct mount *mp)
* while Linux keeps the super block in a locked buffer.
*/
ump->um_e2fs = malloc(sizeof(struct m_ext2fs),
- M_EXT2MNT, M_WAITOK);
+ M_EXT2MNT, M_WAITOK | M_ZERO);
ump->um_e2fs->e2fs = malloc(sizeof(struct ext2fs),
M_EXT2MNT, M_WAITOK);
mtx_init(EXT2_MTX(ump), "EXT2FS", "EXT2FS Lock", MTX_DEF);