From da689186f7be72de93e7933e01ee0ed8286b5372 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Nov 2018 03:42:03 +0000 Subject: [PATCH] Merge r7410 from trunk git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7667 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 719c855df..88c7b53a8 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2244,7 +2244,7 @@ retry: */ ch->max_sge = sdev->dev_attr.max_sge - min(max_sge_delta, - max_t(unsigned int, 0, + max_t(int, 0, sdev->dev_attr.max_sge - max_sge_delta)); qp_init->cap.max_send_sge = ch->max_sge; qp_init->cap.max_recv_sge = ch->max_sge;