OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 1/5] NFS: pass proper net rpc_pton() in nfs_dns_resolve_name()
[PATCH 1/5] NFS: pass proper net rpc_pton() in nfs_dns_resolve_name() [message #45067] Thu, 26 January 2012 11:11
Stanislav Kinsbursky is currently offline  Stanislav Kinsbursky
Messages: 683
Registered: October 2011
Senior Member
From: *parallels.com
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>

---
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 be9a530..fcd8f1d 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,

ip_len = dns_query(NULL, name, namelen, NULL, &ip_addr, NULL);
if (ip_len > 0)
- ret = rpc_pton(&init_net, ip_addr, ip_len, sa, salen);
+ ret = rpc_pton(net, ip_addr, ip_len, sa, salen);
else
ret = -ESRCH;
kfree(ip_addr);
Previous Topic: OpenVZ Kernel based of LTS (3.0) / Future of .32 Kernel
Next Topic: [PATCH 2/5] NFS: build fixed in case of NFS_USE_NEW_IDMAPPER is undefined
Goto Forum:
  


Current Time: Tue Dec 11 20:01:16 GMT 2018