summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/rpcb_clnt.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2010-09-29 16:04:45 +0400
committerJ. Bruce Fields <bfields@redhat.com>2010-10-01 17:18:56 -0400
commitc653ce3f0aee9bb2b221ebf3579385c06f81efcd (patch)
treed0f5a8018e2cf959b6bc1549ce75602ed179dca9 /net/sunrpc/rpcb_clnt.c
parent62832c039eab9d03cd28a66427ce8276988f28b0 (diff)
downloadlinux-c653ce3f0aee9bb2b221ebf3579385c06f81efcd.tar.gz
linux-c653ce3f0aee9bb2b221ebf3579385c06f81efcd.tar.bz2
linux-c653ce3f0aee9bb2b221ebf3579385c06f81efcd.zip
sunrpc: Add net to rpc_create_args
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/rpcb_clnt.c')
-rw-r--r--net/sunrpc/rpcb_clnt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index dac219a56ae1..83af38df3267 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -177,6 +177,7 @@ static DEFINE_MUTEX(rpcb_create_local_mutex);
static int rpcb_create_local(void)
{
struct rpc_create_args args = {
+ .net = &init_net,
.protocol = XPRT_TRANSPORT_TCP,
.address = (struct sockaddr *)&rpcb_inaddr_loopback,
.addrsize = sizeof(rpcb_inaddr_loopback),
@@ -228,6 +229,7 @@ static struct rpc_clnt *rpcb_create(char *hostname, struct sockaddr *srvaddr,
size_t salen, int proto, u32 version)
{
struct rpc_create_args args = {
+ .net = &init_net,
.protocol = proto,
.address = srvaddr,
.addrsize = salen,