diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2010-09-29 08:04:45 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-10-01 17:18:56 -0400 |
commit | c653ce3f0aee9bb2b221ebf3579385c06f81efcd (patch) | |
tree | d0f5a8018e2cf959b6bc1549ce75602ed179dca9 /net/sunrpc/rpcb_clnt.c | |
parent | 62832c039eab9d03cd28a66427ce8276988f28b0 (diff) |
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.c | 2 |
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); | |||
177 | static int rpcb_create_local(void) | 177 | static int rpcb_create_local(void) |
178 | { | 178 | { |
179 | struct rpc_create_args args = { | 179 | struct rpc_create_args args = { |
180 | .net = &init_net, | ||
180 | .protocol = XPRT_TRANSPORT_TCP, | 181 | .protocol = XPRT_TRANSPORT_TCP, |
181 | .address = (struct sockaddr *)&rpcb_inaddr_loopback, | 182 | .address = (struct sockaddr *)&rpcb_inaddr_loopback, |
182 | .addrsize = sizeof(rpcb_inaddr_loopback), | 183 | .addrsize = sizeof(rpcb_inaddr_loopback), |
@@ -228,6 +229,7 @@ static struct rpc_clnt *rpcb_create(char *hostname, struct sockaddr *srvaddr, | |||
228 | size_t salen, int proto, u32 version) | 229 | size_t salen, int proto, u32 version) |
229 | { | 230 | { |
230 | struct rpc_create_args args = { | 231 | struct rpc_create_args args = { |
232 | .net = &init_net, | ||
231 | .protocol = proto, | 233 | .protocol = proto, |
232 | .address = srvaddr, | 234 | .address = srvaddr, |
233 | .addrsize = salen, | 235 | .addrsize = salen, |