]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Replace various occurrences of kstrndup() with kmemdup_nul()
authorTrond Myklebust <trondmy@gmail.com>
Sun, 2 Feb 2020 22:57:07 +0000 (17:57 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 3 Feb 2020 21:35:07 +0000 (16:35 -0500)
commit7b1d976642672c8d71d0cbbf7f37a32b3258a2c4
treea6abffd591fd5839936d4ce7e5f51b423c96e623
parent48d1b797290bf75d9cae2740321c07c294c4b0ff
NFS: Replace various occurrences of kstrndup() with kmemdup_nul()

When we already know the string length, it is more efficient to
use kmemdup_nul().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
[Anna - Changes to super.c were already made during fscontext conversion]
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dns_resolve.c
fs/nfs/nfs4namespace.c