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);