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:
parent
1c54b514dd
commit
424364633e
@ -708,7 +708,7 @@ nfs_decode_args(struct mount *mp, struct nfsmount *nmp, struct nfs_args *argp,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hostname) {
|
if (hostname) {
|
||||||
strlcpy(nmp->nm_hostname, argp->hostname,
|
strlcpy(nmp->nm_hostname, hostname,
|
||||||
sizeof(nmp->nm_hostname));
|
sizeof(nmp->nm_hostname));
|
||||||
p = strchr(nmp->nm_hostname, ':');
|
p = strchr(nmp->nm_hostname, ':');
|
||||||
if (p)
|
if (p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user