mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-12 05:48:39 +08:00
NFS: pass current net to rpc_pton() while parsing mount options
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
c7add9a972
commit
b48e127884
@ -1408,7 +1408,7 @@ static int nfs_parse_mount_options(char *raw,
|
||||
if (string == NULL)
|
||||
goto out_nomem;
|
||||
mnt->nfs_server.addrlen =
|
||||
rpc_pton(&init_net, string, strlen(string),
|
||||
rpc_pton(mnt->net, string, strlen(string),
|
||||
(struct sockaddr *)
|
||||
&mnt->nfs_server.address,
|
||||
sizeof(mnt->nfs_server.address));
|
||||
@ -1430,7 +1430,7 @@ static int nfs_parse_mount_options(char *raw,
|
||||
if (string == NULL)
|
||||
goto out_nomem;
|
||||
mnt->mount_server.addrlen =
|
||||
rpc_pton(&init_net, string, strlen(string),
|
||||
rpc_pton(mnt->net, string, strlen(string),
|
||||
(struct sockaddr *)
|
||||
&mnt->mount_server.address,
|
||||
sizeof(mnt->mount_server.address));
|
||||
|
Loading…
Reference in New Issue
Block a user