Re: [PATCH -next] nvmet: replace kstrndup() with kmemdup_nul()

From: Christoph Hellwig
Date: Tue May 12 2020 - 12:14:14 EST


On Fri, May 08, 2020 at 07:59:06PM +0800, Chen Zhou wrote:
> It is more efficient to use kmemdup_nul() if the size is known exactly.
>
> The doc in kernel:
> "Note: Use kmemdup_nul() instead if the size is known exactly."
>
> Signed-off-by: Chen Zhou <chenzhou10@xxxxxxxxxx>

Thanks,

applied to nvme-5.8.