]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit023956779ce93b9e159c2af4b05637a1c3e996f1
tree0d84135db64ddeb2a85073c727fd95b7f33f853f
parent247fa6c40d0aa6d11999303fed215cfda0f126f3
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: f0713f461aaf ("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