[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a6b3127e-11cb-4dc8-7db8-e526521d11d9@web.de>
Date: Tue, 6 Aug 2019 14:45:30 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>,
Alasdair Kergon <agk@...hat.com>,
Mike Snitzer <snitzer@...hat.com>, dm-devel@...hat.com
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
Colin Ian King <colin.king@...onical.com>
Subject: Re: [PATCH] dm raid1: Use struct_size() in kzalloc()
> +++ 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
Powered by blists - more mailing lists