From 0e435ce468e7ec4add8bced174045c10e8206cc8 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 4 Jun 2011 12:24:41 +0000 Subject: [PATCH] Reverted r3521. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3525 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 8ec3fe75d..74ea06a19 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1716,6 +1716,9 @@ static void srpt_handle_new_iu(struct srpt_rdma_ch *ch, goto out; } + if (unlikely(ch_state != CH_LIVE)) + goto post_recv; + if (srp_cmd->opcode == SRP_CMD || srp_cmd->opcode == SRP_TSK_MGMT) { if (!send_ioctx) send_ioctx = srpt_get_send_ioctx(ch);