[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200512161411.GC6049@lst.de>
Date: Tue, 12 May 2020 18:14:11 +0200
From: Christoph Hellwig <hch@....de>
To: Chen Zhou <chenzhou10@...wei.com>
Cc: hch@....de, sagi@...mberg.me, chaitanya.kulkarni@....com,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] nvmet: replace kstrndup() with kmemdup_nul()
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@...wei.com>
Thanks,
applied to nvme-5.8.
Powered by blists - more mailing lists