svcrdma: fix an incorrect check on -E2BIG and -EINVAL
authorColin Ian King <colin.king@canonical.com>
Thu, 13 Jul 2017 17:51:15 +0000 (18:51 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 13 Jul 2017 18:18:47 +0000 (14:18 -0400)
commitb20dae70bfa5014fdf201d0a8589271b888e4927
tree808a435f0329f3547a468bf2d03583b72119e2c9
parent630458e730b82efe1f6eb90e6bcabad02fe76e20
svcrdma: fix an incorrect check on -E2BIG and -EINVAL

The current check will always be true and will always jump to
err1, this looks dubious to me. I believe && should be used
instead of ||.

Detected by CoverityScan, CID#1450120 ("Logically Dead Code")

Fixes: 107c1d0a991a ("svcrdma: Avoid Send Queue overflow")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_sendto.c