]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/nfs/nfs4namespace.c
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / fs / nfs / nfs4namespace.c
index 3ea1c1008b5bbb23552ce5c32205dc2baa046f18..84026e7b8a5f3fe528d9f95968a2b43947b5762e 100644 (file)
@@ -501,7 +501,7 @@ static int nfs4_try_replacing_one_location(struct nfs_server *server,
                rpc_set_port(sap, NFS_PORT);
 
                error = -ENOMEM;
-               hostname = kstrndup(buf->data, buf->len, GFP_KERNEL);
+               hostname = kmemdup_nul(buf->data, buf->len, GFP_KERNEL);
                if (hostname == NULL)
                        break;