mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user