aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcsock.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2017-08-01 12:00:14 -0400
committerJ. Bruce Fields <bfields@redhat.com>2017-08-24 22:13:50 -0400
commit7075a867ce5748007b299bd28f12754cd51719d4 (patch)
treeb009fd5045e9ff602bb1682944b2e053ea23e37b /net/sunrpc/svcsock.c
parentsunrpc: Const-ify struct sv_serv_ops (diff)
downloadlinux-dev-7075a867ce5748007b299bd28f12754cd51719d4.tar.xz
linux-dev-7075a867ce5748007b299bd28f12754cd51719d4.zip
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>
Diffstat (limited to 'net/sunrpc/svcsock.c')
0 files changed, 0 insertions, 0 deletions