diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-01-26 06:11:33 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-06 18:48:04 -0500 |
commit | bc224f539dcce7805d4bfb68a92f0fe8bb102c22 (patch) | |
tree | 7d44e7b2348a29c48505057ac592efdc06562158 | |
parent | dc03085834a4530b2514708a643cd3fe38f35b21 (diff) |
NFS: pass proper net rpc_pton() in nfs_dns_resolve_name()
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | fs/nfs/dns_resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c index be9a530987b3..fcd8f1d7430f 100644 --- a/fs/nfs/dns_resolve.c +++ b/fs/nfs/dns_resolve.c | |||
@@ -20,7 +20,7 @@ ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen, | |||
20 | 20 | ||
21 | ip_len = dns_query(NULL, name, namelen, NULL, &ip_addr, NULL); | 21 | ip_len = dns_query(NULL, name, namelen, NULL, &ip_addr, NULL); |
22 | if (ip_len > 0) | 22 | if (ip_len > 0) |
23 | ret = rpc_pton(&init_net, ip_addr, ip_len, sa, salen); | 23 | ret = rpc_pton(net, ip_addr, ip_len, sa, salen); |
24 | else | 24 | else |
25 | ret = -ESRCH; | 25 | ret = -ESRCH; |
26 | kfree(ip_addr); | 26 | kfree(ip_addr); |