xprtrdma: fix incorrect header size calculations
authorColin Ian King <colin.king@canonical.com>
Wed, 15 Jul 2020 16:26:04 +0000 (17:26 +0100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jul 2020 17:01:01 +0000 (13:01 -0400)
commit912288442cb2f431bf3c8cb097a5de83bc6dbac1
tree0d84135db64ddeb2a85073c727fd95b7f33f853f
parent913fadc5b105c3619d9e8d0fe8899ff1593cc737
xprtrdma: fix incorrect header size calculations

Currently the header size calculations are using an assignment
operator instead of a += operator when accumulating the header
size leading to incorrect sizes.  Fix this by using the correct
operator.

Addresses-Coverity: ("Unused value")
Fixes: 302d3deb2068 ("xprtrdma: Prevent inline overflow")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c