mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 00:38:55 +00:00
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>
This commit is contained in:
parent
630458e730
commit
b20dae70bf
@ -684,7 +684,7 @@ int svc_rdma_sendto(struct svc_rqst *rqstp)
|
||||
return 0;
|
||||
|
||||
err2:
|
||||
if (ret != -E2BIG || ret != -EINVAL)
|
||||
if (ret != -E2BIG && ret != -EINVAL)
|
||||
goto err1;
|
||||
|
||||
ret = svc_rdma_post_recv(rdma, GFP_KERNEL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user