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
This commit is contained in:
Bart Van Assche
2012-05-02 15:19:40 +00:00
parent dc94ba7d76
commit 1d6daae29e

View File

@@ -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