summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJoshua Rogers <linux@joshua.hu>2025-11-07 10:09:48 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-02 12:57:24 +0100
commit4846a4c6acb98efdefc1274c735746c3c31090e4 (patch)
tree03b78cf03c40720fcb83ffcc17537b2d265ae4cd /net
parent433bb1344ef66cc071d7e1977744ef9b06a15c2b (diff)
downloadlinux-4846a4c6acb98efdefc1274c735746c3c31090e4.tar.gz
linux-4846a4c6acb98efdefc1274c735746c3c31090e4.tar.bz2
linux-4846a4c6acb98efdefc1274c735746c3c31090e4.zip
svcrdma: return 0 on success from svc_rdma_copy_inline_range
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>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/xprtrdma/svc_rdma_rw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_rw.c b/net/sunrpc/xprtrdma/svc_rdma_rw.c
index b5cd37884f53..5bc950d29366 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_rw.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_rw.c
@@ -863,7 +863,7 @@ static int svc_rdma_copy_inline_range(struct svc_rqst *rqstp,
offset += page_len;
}
- return -EINVAL;
+ return 0;
}
/**