From 75992b0fa95a667d8f436962ea6a694fe992c001 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Thu, 8 Oct 2015 20:27:40 -0400 Subject: [PATCH] pvfs2_fill_sb(): use kzalloc() Signed-off-by: Al Viro Signed-off-by: Mike Marshall --- fs/orangefs/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index f29e7cccdfd1..45db0772a767 100644 --- a/fs/orangefs/super.c +++ b/fs/orangefs/super.c @@ -358,10 +358,9 @@ static int pvfs2_fill_sb(struct super_block *sb, /* alloc and init our private pvfs2 sb info */ sb->s_fs_info = - kmalloc(sizeof(struct pvfs2_sb_info_s), PVFS2_GFP_FLAGS); + kzalloc(sizeof(struct pvfs2_sb_info_s), PVFS2_GFP_FLAGS); if (!PVFS2_SB(sb)) return -ENOMEM; - memset(sb->s_fs_info, 0, sizeof(struct pvfs2_sb_info_s)); PVFS2_SB(sb)->sb = sb; PVFS2_SB(sb)->root_khandle = fs_mount->root_khandle; -- 2.39.5