diff options
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 0d9b5275fac3..25bbf2d7f603 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -234,10 +234,15 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args) | |||
234 | { | 234 | { |
235 | struct rpc_xprt *xprt; | 235 | struct rpc_xprt *xprt; |
236 | struct rpc_clnt *clnt; | 236 | struct rpc_clnt *clnt; |
237 | struct rpc_xprtsock_create xprtargs = { | ||
238 | .proto = args->protocol, | ||
239 | .dstaddr = args->address, | ||
240 | .addrlen = args->addrsize, | ||
241 | .timeout = args->timeout | ||
242 | }; | ||
237 | char servername[20]; | 243 | char servername[20]; |
238 | 244 | ||
239 | xprt = xprt_create_transport(args->protocol, args->address, | 245 | xprt = xprt_create_transport(&xprtargs); |
240 | args->addrsize, args->timeout); | ||
241 | if (IS_ERR(xprt)) | 246 | if (IS_ERR(xprt)) |
242 | return (struct rpc_clnt *)xprt; | 247 | return (struct rpc_clnt *)xprt; |
243 | 248 | ||