OSDN Git Service

SUNRPC: Use kmemdup_nul() in rpc_parse_scope_id()
authorTrond Myklebust <trondmy@gmail.com>
Sun, 2 Feb 2020 22:57:08 +0000 (17:57 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 3 Feb 2020 21:35:07 +0000 (16:35 -0500)
commit7ccbddbe3e67591a02ddd20078d1241bd8fe79f3
tree84a93a414f74d858ecb10c41ba1a1cfc61476344
parenta8bd9ddf397be8e0d812ce3da4e40440ac25f6d0
SUNRPC: Use kmemdup_nul() in rpc_parse_scope_id()

Using kmemdup_nul() is more efficient when the length is known.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/addr.c