nfsd: helper for dup of possibly NULL string
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 20 Nov 2015 20:58:37 +0000 (15:58 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 24 Nov 2015 17:39:17 +0000 (10:39 -0700)
commit50043859325b377e728676d31aad7affaf91b2ce
tree1aaf138f9d318000bf158b28fb0e4cd039b5857c
parent6496500cf15f29ac8afc565e2e4b6f92a1324860
nfsd: helper for dup of possibly NULL string

Technically the initialization in the NULL case isn't even needed as the
only caller already has target zeroed out, but it seems safer to keep
copy_cred generic.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c