Re: [PATCH] udf: Use kvzalloc() in udf_sb_alloc_bitmap()

From: Denis Efremov
Date: Thu Aug 27 2020 - 11:28:42 EST



> @@ -1013,10 +1013,7 @@ static struct udf_bitmap *udf_sb_alloc_bitmap(struct super_block *sb, u32 index)
> size = sizeof(struct udf_bitmap) +
> (sizeof(struct buffer_head *) * nr_groups);

I missed that this size is a good place to use struct_size for
overflow checking. I will send v2 instead.