diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 1f8166c89..d210cc1ad 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2510,8 +2510,7 @@ static int srpt_cm_req_recv(struct ib_cm_id *cm_id, if (!memcmp(ch2->i_port_id, req->initiator_port_id, 16) && !memcmp(ch2->t_port_id, req->target_port_id, 16) && param->port == ch2->sport->port - && param->listen_id == ch2->sport->sdev->cm_id - && ch2->cm_id) { + && param->listen_id == ch2->sport->sdev->cm_id) { if (!__srpt_close_ch(ch2)) continue;