diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-01-19 09:51:04 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 19:28:17 -0500 |
commit | 599ec129c2f0e4da955bef685880260de1813c85 (patch) | |
tree | cfd0c28b0031a71061aaa946e818168a900f78e0 /fs/nfs/dns_resolve.c | |
parent | 2c5f846747526e2b83c5f1b8e69016be0e2e87c0 (diff) |
NFS: parse DNS cache in proper network namespace context
This patch replaces "init_net" with cache's owner net in rpc_pton() call.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/dns_resolve.c')
-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 7edc62a8a64f..be9a530987b3 100644 --- a/fs/nfs/dns_resolve.c +++ b/fs/nfs/dns_resolve.c | |||
@@ -224,7 +224,7 @@ static int nfs_dns_parse(struct cache_detail *cd, char *buf, int buflen) | |||
224 | len = qword_get(&buf, buf1, sizeof(buf1)); | 224 | len = qword_get(&buf, buf1, sizeof(buf1)); |
225 | if (len <= 0) | 225 | if (len <= 0) |
226 | goto out; | 226 | goto out; |
227 | key.addrlen = rpc_pton(&init_net, buf1, len, | 227 | key.addrlen = rpc_pton(cd->net, buf1, len, |
228 | (struct sockaddr *)&key.addr, | 228 | (struct sockaddr *)&key.addr, |
229 | sizeof(key.addr)); | 229 | sizeof(key.addr)); |
230 | 230 | ||