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
This commit is contained in:
Bart Van Assche
2018-11-04 03:42:03 +00:00
parent 99a7133b30
commit da689186f7

View File

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