Skip to content

Commit 4846a4c

Browse files
Joshua Rogersgregkh
authored andcommitted
svcrdma: return 0 on success from svc_rdma_copy_inline_range
commit 9497202 upstream. The function comment specifies 0 on success and -EINVAL on invalid parameters. Make the tail return 0 after a successful copy loop. Fixes: d7cc739 ("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>
1 parent 433bb13 commit 4846a4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/sunrpc/xprtrdma/svc_rdma_rw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ static int svc_rdma_copy_inline_range(struct svc_rqst *rqstp,
863863
offset += page_len;
864864
}
865865

866-
return -EINVAL;
866+
return 0;
867867
}
868868

869869
/**

0 commit comments

Comments
 (0)