Unverified Commit cf69ba26 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 9c0286bc 33090871
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -973,6 +973,7 @@ static void siw_accept_newconn(struct siw_cep *cep)
			siw_cep_put(cep);
			new_cep->listen_cep = NULL;
			if (rv) {
				siw_cancel_mpatimer(new_cep);
				siw_cep_set_free(new_cep);
				goto error;
			}
@@ -1097,11 +1098,14 @@ static void siw_cm_work_handler(struct work_struct *w)
				/*
				 * Socket close before MPA request received.
				 */
				siw_dbg_cep(cep, "no mpareq: drop listener\n");
				if (cep->listen_cep) {
					siw_dbg_cep(cep,
						"no mpareq: drop listener\n");
					siw_cep_put(cep->listen_cep);
					cep->listen_cep = NULL;
				}
			}
		}
		release_cep = 1;
		break;

@@ -1222,7 +1226,11 @@ static void siw_cm_llp_data_ready(struct sock *sk)
	if (!cep)
		goto out;

	siw_dbg_cep(cep, "state: %d\n", cep->state);
	siw_dbg_cep(cep, "cep state: %d, socket state %d\n",
		    cep->state, sk->sk_state);

	if (sk->sk_state != TCP_ESTABLISHED)
		goto out;

	switch (cep->state) {
	case SIW_EPSTATE_RDMA_MODE: