From: Stanislav Kinsbursky Date: Thu, 19 Jan 2012 14:51:04 +0000 (+0400) Subject: NFS: parse DNS cache in proper network namespace context X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=599ec129c2f0e4da955bef685880260de1813c85;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Trond Myklebust --- 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) 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));