Skip to content

Commit

Permalink
svcrdma: Set rqstp transport address in rdma_read_complete function
Browse files Browse the repository at this point in the history
The rdma_read_complete function needs to copy the rqstp transport address
from the transport. Failure to do so can result in using the wrong
authentication method for the RPC or bug checking if the rqstp address
is not valid.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
  • Loading branch information
Tom Tucker committed May 19, 2008
1 parent 97a3df3 commit 69500c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ static int rdma_read_complete(struct svc_rqst *rqstp,

/* XXX: What should this be? */
rqstp->rq_prot = IPPROTO_MAX;
svc_xprt_copy_addrs(rqstp, rqstp->rq_xprt);

ret = rqstp->rq_arg.head[0].iov_len
+ rqstp->rq_arg.page_len
Expand Down

0 comments on commit 69500c4

Please sign in to comment.