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@huawei.com>