Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH] RDMA/siw: fix wrong judgment in siw_cm_work_handler
@ 2020-10-28 12:25 Zhang Qilong
  2020-10-29  7:21 ` Bernard Metzler
  2020-11-02 19:28 ` Jason Gunthorpe
  0 siblings, 2 replies; 3+ messages in thread
From: Zhang Qilong @ 2020-10-28 12:25 UTC (permalink / raw)
  To: bmt, dledford, jgg; +Cc: linux-rdma

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

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
---
 drivers/infiniband/sw/siw/siw_cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-02 19:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-28 12:25 [PATCH] RDMA/siw: fix wrong judgment in siw_cm_work_handler Zhang Qilong
2020-10-29  7:21 ` Bernard Metzler
2020-11-02 19:28 ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox