projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c5f846
)
NFS: parse DNS cache in proper network namespace context
author
Stanislav Kinsbursky
<skinsbursky@parallels.com>
Thu, 19 Jan 2012 14:51:04 +0000
(18:51 +0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 1 Feb 2012 00:28:17 +0000
(19:28 -0500)
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>
fs/nfs/dns_resolve.c
patch
|
blob
|
history
diff --git
a/fs/nfs/dns_resolve.c
b/fs/nfs/dns_resolve.c
index 7edc62a8a64fa23f81fa140205c2548f97245083..be9a530987b3de3ec0458159e6ee178084dda9c6 100644
(file)
--- 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)
len = qword_get(&buf, buf1, sizeof(buf1));
if (len <= 0)
goto out;
- key.addrlen = rpc_pton(
&init_
net, buf1, len,
+ key.addrlen = rpc_pton(
cd->
net, buf1, len,
(struct sockaddr *)&key.addr,
sizeof(key.addr));