NFS: Fix misparsing of nfsv4 fs_locations attribute (take 2)
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Mar 2009 00:33:17 +0000 (20:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Mar 2009 00:33:17 +0000 (20:33 -0400)
commitef95d31e6de6be9602ce950b85fb7ab8af46ae42
treeaeb7d7a9893374a0c8975a5d060f07ab05283319
parenteb9b55ab4d73280597fd183b367d50452f4d7846
NFS: Fix misparsing of nfsv4 fs_locations attribute (take 2)

The changeset ea31a4437c59219bf3ea946d58984b01a45a289c (nfs: Fix
misparsing of nfsv4 fs_locations attribute) causes the mountpath that is
calculated at the beginning of try_location() to be clobbered when we
later strncpy a non-nul terminated hostname using an incorrect buffer
length.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4namespace.c