aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 00fe75a71c4b..0c4c2201b3aa 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3993,9 +3993,9 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
3993 goto failed_mount; 3993 goto failed_mount;
3994 } 3994 }
3995 } 3995 }
3996 sbi->s_group_desc = kvmalloc(db_count * 3996 sbi->s_group_desc = kvmalloc_array(db_count,
3997 sizeof(struct buffer_head *), 3997 sizeof(struct buffer_head *),
3998 GFP_KERNEL); 3998 GFP_KERNEL);
3999 if (sbi->s_group_desc == NULL) { 3999 if (sbi->s_group_desc == NULL) {
4000 ext4_msg(sb, KERN_ERR, "not enough memory"); 4000 ext4_msg(sb, KERN_ERR, "not enough memory");
4001 ret = -ENOMEM; 4001 ret = -ENOMEM;