From 1d6daae29e240a852a4f203e5dd96114f29f7915 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 2 May 2012 15:19:40 +0000 Subject: [PATCH] ib_srpt: Handle thread creation failure properly git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4270 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 9b78a1f9f..4b378a580 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2612,6 +2612,7 @@ reject: sizeof(*rej)); if (ch && ch->thread) { + srpt_drain_channel(cm_id); srpt_close_ch(ch); /* * Tell the caller not to free cm_id since