aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ciss
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2013-04-25 23:10:34 +0000
committerSean Bruno <sbruno@FreeBSD.org>2013-04-25 23:10:34 +0000
commit78d58a11fc3832979a06074b4f4a943073c8bd61 (patch)
tree20adcbe3bc756d1ae8e874c02255a891d65687b2 /sys/dev/ciss
parent20e0cc0abb82ea2ca2562d1ba39898950dba850c (diff)
Notes
Diffstat (limited to 'sys/dev/ciss')
-rw-r--r--sys/dev/ciss/ciss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 10ab10aefe9f..b190df6d7355 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -3005,7 +3005,7 @@ ciss_cam_action(struct cam_sim *sim, union ccb *ccb)
cpi->transport_version = 2;
cpi->protocol = PROTO_SCSI;
cpi->protocol_version = SCSI_REV_2;
- cpi->maxio = (CISS_MAX_SG_ELEMENTS - 1) * PAGE_SIZE;
+ cpi->maxio = (min(CISS_MAX_SG_ELEMENTS, sc->ciss_cfg->max_sg_length) - 1) * PAGE_SIZE;
ccb->ccb_h.status = CAM_REQ_CMP;
break;
}