]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet-auth: use kmemdup instead of kmalloc + memcpy
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Tue, 26 Jul 2022 02:56:32 +0000 (10:56 +0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 10 Aug 2022 14:05:09 +0000 (16:05 +0200)
commit5efe7aeab74702d3df9675a0fc87d1ec2404079a
tree91d70c8e54ca015e618f431f42909e3e1ed3f704
parent350a99f544b882280c5929b350cb93c97d46bf5a
nvmet-auth: use kmemdup instead of kmalloc + memcpy

For code neat purpose, we can use kmemdup to replace
kmalloc + memcpy.

Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/fabrics-cmd-auth.c