From eff4f33b704251ae3edd36cb63459592eed55f56 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 26 Jun 2011 14:30:38 +0000 Subject: [PATCH] ib_srpt: Relax a BUG_ON() statement into WARN_ON() git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3630 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index cc210447f..93c40186e 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2019,7 +2019,7 @@ static int srpt_create_ch_ib(struct srpt_rdma_ch *ch) * (max_sge - 3) entries only. */ ch->max_sge = sdev->dev_attr.max_sge - 3; - BUG_ON(ch->max_sge < 1); + WARN_ON(ch->max_sge < 1); qp_init->cap.max_send_sge = ch->max_sge; ch->qp = ib_create_qp(sdev->pd, qp_init);