ib_srpt: Add a BUG_ON() statement

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3542 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-06-05 09:58:03 +00:00
parent 1061f1cf43
commit a43b1b63fc

View File

@@ -2151,6 +2151,7 @@ static void srpt_release_channel_work(struct work_struct *w)
#else
ch = container_of(w, struct srpt_rdma_ch, release_work);
#endif
BUG_ON(!ch);
TRACE_DBG("ch = %p; ch->scst_sess = %p", ch, ch->scst_sess);
WARN_ON(ch->state != CH_RELEASING);