summary refs log tree commit diff
path: root/drivers/infiniband/sw
diff options
context:
space:
mode:
authorZhang Qilong <zhangqilong3@huawei.com>2020-10-28 20:25:09 +0800
committerJason Gunthorpe <jgg@nvidia.com>2020-11-02 15:26:53 -0400
commit856c2998999958761b6a52208b4edb4d352c4037 (patch)
treead356c27880f49817b58c7c53d15c069114d529e /drivers/infiniband/sw
parentd5c7916fe4613e9128b0f877f7e2dd0c85f5d2d2 (diff)
downloadlinux-856c2998999958761b6a52208b4edb4d352c4037.tar.gz
RDMA/siw: Fix typo of EAGAIN not -EAGAIN in siw_cm_work_handler()
The rv cannot be 'EAGAIN' in the previous path, we should use '-EAGAIN' to
check it. For example:

Call trace:
 ->siw_cm_work_handler
	->siw_proc_mpareq
		->siw_recv_mpa_rr

Link: https://lore.kernel.org/r/20201028122509.47074-1-zhangqilong3@huawei.com
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r--drivers/infiniband/sw/siw/siw_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/siw/siw_cm.c b/drivers/infiniband/sw/siw/siw_cm.c
index 66764f7ef072..1f9e15b71504 100644
--- a/drivers/infiniband/sw/siw/siw_cm.c
+++ b/drivers/infiniband/sw/siw/siw_cm.c
@@ -1047,7 +1047,7 @@ static void siw_cm_work_handler(struct work_struct *w)
 					    cep->state);
 			}
 		}
-		if (rv && rv != EAGAIN)
+		if (rv && rv != -EAGAIN)
 			release_cep = 1;
 		break;