From a43b1b63fc841c7703a0e380d27caa47eb80e5cd Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 5 Jun 2011 09:58:03 +0000 Subject: [PATCH] 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 --- 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 7a0991a1e..8d289b472 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -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);