[<prev] [next>] [day] [month] [year] [list]
Message-ID: <d9e5c4d7-43fd-13fd-688e-36f9f0d1466d@web.de>
Date: Fri, 24 Apr 2020 16:50:17 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Christophe Jaillet <christophe.jaillet@...adoo.fr>,
linux-scsi@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
Dan Carpenter <dan.carpenter@...cle.com>,
"James E. J. Bottomley" <jejb@...ux.ibm.com>,
Karan Tilak Kumar <kartilak@...co.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Satish Kharat <satishkh@...co.com>,
Sesidhar Baddela <sebaddel@...co.com>
Subject: Re: [PATCH] scsi: fnic: Use kmalloc instead of vmalloc for a small
memory allocation
> 'struct fc_trace_flag_type' is just a few bytes long. There is no need
> to allocate such a structure with vmalloc. Using kmalloc instead.
Can such an adjustment be relevant for the specification of the tag “Fixes”?
> While at it, axe a useless test when freeing the memory.
I find it more appropriate to provide this source code improvement
by a separate update step.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=b4f633221f0aeac102e463a4be46a643b2e3b819#n138
See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/coccinelle/free/ifnullfree.cocci?id=b4f633221f0aeac102e463a4be46a643b2e3b819#n4
Regards,
Markus
Powered by blists - more mailing lists