]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit22ae571505fc5ed5e24a96db1e39956f1ffbb397
tree84a93a414f74d858ecb10c41ba1a1cfc61476344
parenta007b158a5613aca171fa17f61b81e93b5f7ac89
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