]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: use kmemdup_nul() in gssp_stringify()
authorChen Zhou <chenzhou10@huawei.com>
Fri, 8 May 2020 12:40:00 +0000 (20:40 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 8 Jun 2020 14:51:32 +0000 (10:51 -0400)
commit0a1d28a015c1fa43e904f95a648fa66b57b58aff
tree0b37332ef5b2d1ec4a5c756e69db610f22ac507b
parent7e85fc1bcabc6f14c4ef07783d2be62d2757078e
sunrpc: use kmemdup_nul() in gssp_stringify()

It is more efficient to use kmemdup_nul() if the size is known exactly
.

According to doc:
"Note: Use kmemdup_nul() instead if the size is known exactly."

Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/gss_rpc_upcall.c