From: Chuck Lever Date: Mon, 14 May 2018 17:20:06 +0000 (-0400) Subject: svcrdma: Fix incorrect return value/type in svc_rdma_post_recvs X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=af7fd74ec2434ec999160af32d10be17fbf225ed;p=linux.git svcrdma: Fix incorrect return value/type in svc_rdma_post_recvs This crept in during the development process and wasn't caught before I posted the "final" version. Reported-by: Dan Carpenter Fixes: 0b2613c5883f ('svcrdma: Allocate recv_ctxt's on CPU ... ') Signed-off-by: Chuck Lever Signed-off-by: J. Bruce Fields --- diff --git a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c index 09ce09b3ac6e1..841fca143804f 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c +++ b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c @@ -270,7 +270,7 @@ bool svc_rdma_post_recvs(struct svcxprt_rdma *rdma) for (i = 0; i < rdma->sc_max_requests; i++) { ctxt = svc_rdma_recv_ctxt_get(rdma); if (!ctxt) - return -ENOMEM; + return false; ctxt->rc_temp = true; ret = __svc_rdma_post_recv(rdma, ctxt); if (ret) {