lkml.org 
[lkml]   [2019]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] dm raid1: Use struct_size() in kzalloc()
From
Date
> +++ 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

\
 
 \ /
  Last update: 2019-08-06 14:46    [W:0.048 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site