Try again not to use a userspace pointer in the kernel when trying to record

the hostname which we need for NLM requests. The previous patch was incomplete.

PR:		125849
Pointy hat:	dfr
This commit is contained in:
Doug Rabson 2008-07-24 14:02:03 +00:00
parent db428b786c
commit d3508f91ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180780

View File

@ -708,7 +708,7 @@ nfs_decode_args(struct mount *mp, struct nfsmount *nmp, struct nfs_args *argp,
}
if (hostname) {
strlcpy(nmp->nm_hostname, argp->hostname,
strlcpy(nmp->nm_hostname, hostname,
sizeof(nmp->nm_hostname));
p = strchr(nmp->nm_hostname, ':');
if (p)