svcrdma: Fix incorrect return value/type in svc_rdma_post_recvs
authorChuck Lever <chuck.lever@oracle.com>
Mon, 14 May 2018 17:20:06 +0000 (13:20 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 8 Jun 2018 20:28:55 +0000 (16:28 -0400)
This crept in during the development process and wasn't caught
before I posted the "final" version.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 0b2613c5883f ('svcrdma: Allocate recv_ctxt's on CPU ... ')
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c

index 09ce09b3ac6e1153e2b5c511dcdc9d74ee544e75..841fca143804fd4ef86cfe05454935e8efda4cfc 100644 (file)
@@ -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) {