]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
svcrdma: return 0 on success from svc_rdma_copy_inline_range
authorJoshua Rogers <linux@joshua.hu>
Fri, 7 Nov 2025 15:09:48 +0000 (10:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Jan 2026 11:57:24 +0000 (12:57 +0100)
commit 94972027ab55b200e031059fd6c7a649f8248020 upstream.

The function comment specifies 0 on success and -EINVAL on invalid
parameters. Make the tail return 0 after a successful copy loop.

Fixes: d7cc73972661 ("svcrdma: support multiple Read chunks per RPC")
Cc: stable@vger.kernel.org
Signed-off-by: Joshua Rogers <linux@joshua.hu>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/xprtrdma/svc_rdma_rw.c

index b5cd37884f53d5c8317dcaf4a2f017ec58be2a75..5bc950d29366bd3ce72bfe786b2c9158bd0e3971 100644 (file)
@@ -863,7 +863,7 @@ static int svc_rdma_copy_inline_range(struct svc_rqst *rqstp,
                offset += page_len;
        }
 
-       return -EINVAL;
+       return 0;
 }
 
 /**