Messages in this thread | | | Subject | Re: [PATCH] dm raid1: Use struct_size() in kzalloc() | From | Markus Elfring <> | Date | Tue, 6 Aug 2019 14:45:30 +0200 |
| |
> +++ 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
| |