Home
last modified time | relevance | path

Searched hist:"7075 a867ce5748007b299bd28f12754cd51719d4" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_rw.cdiff 7075a867ce5748007b299bd28f12754cd51719d4 Tue Aug 01 11:00:14 CDT 2017 Chuck Lever <chuck.lever@oracle.com> svcrdma: Clean up svc_rdma_build_read_chunk()

Dan Carpenter <dan.carpenter@oracle.com> observed that the while()
loop in svc_rdma_build_read_chunk() does not document the assumption
that the loop interior is always executed at least once.

Defensive: the function now returns -EINVAL if this assumption
fails.

Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>