Skip to content

Commit 9497202

Browse files
Joshua Rogerschucklever
authored andcommitted
svcrdma: return 0 on success from svc_rdma_copy_inline_range
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>
1 parent a8ee909 commit 9497202

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
@@ -860,7 +860,7 @@ static int svc_rdma_copy_inline_range(struct svc_rqst *rqstp,
860860
offset += page_len;
861861
}
862862

863-
return -EINVAL;
863+
return 0;
864864
}
865865

866866
/**

0 commit comments

Comments
 (0)