NFSv4: Clean up initialisation of uniquified client id strings
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 7 Oct 2020 22:24:17 +0000 (18:24 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 9 Oct 2020 14:04:36 +0000 (10:04 -0400)
commit1aee551334cda1fed8b8112dbe38257397a55c78
tree1d32b4e31a36d59f2568cc14802230bd6cac3baf
parentbff049a3b5001eb462f27eda98f32f3ff10f4ec2
NFSv4: Clean up initialisation of uniquified client id strings

When the user sets a uniquifier, then ensure we copy the string
so that calls to strlen() etc are atomic with calls to snprintf().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c