Re: [PATCH] dm raid1: Use struct_size() in kzalloc()

From: Markus Elfring
Date: Tue Aug 06 2019 - 08:45:50 EST


> +++ b/drivers/md/dm-raid1.c
> @@ -878,12 +878,9 @@ static struct mirror_set *alloc_context(unsigned int nr_mirrors,
> struct dm_target *ti,
> struct dm_dirty_log *dl)
> {
> - size_t len;
> struct mirror_set *ms = NULL;
â

How do you think about to replace the initialisation âNULLâ by the desired function call?

Regards,
Markus