]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Fix use of xdr_stream_encode_item_{present, absent}
authorChuck Lever <chuck.lever@oracle.com>
Mon, 20 Apr 2020 00:03:10 +0000 (20:03 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 20 Apr 2020 14:45:01 +0000 (10:45 -0400)
commita1db324d4b0234b9003c6693ab5e41134ee5113d
treeb48b281e442c6b044b5d5ea2b4d66f7a9e8966f9
parent8585ed867b76bffe2d638260272f18d2f459a96e
xprtrdma: Fix use of xdr_stream_encode_item_{present, absent}

These new helpers do not return 0 on success, they return the
encoded size. Thus they are not a drop-in replacement for the
old helpers.

Fixes: 032188d9fa14 ("SUNRPC: Add encoders for list item discriminators")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c