aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDoug White <dwhite@FreeBSD.org>2004-08-24 03:47:41 +0000
committerDoug White <dwhite@FreeBSD.org>2004-08-24 03:47:41 +0000
commitb3f1e85ab9b712355c26f5f2a188a44444e5c85c (patch)
treefe907ad0034a39b209e5187ac970836f4e7e7232 /sys/dev
parent648bfe0b75971694fe2fe3ad54ff7fe2cd83a480 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/mpt/mpt_freebsd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/mpt/mpt_freebsd.c b/sys/dev/mpt/mpt_freebsd.c
index f64a3ff6b7d1f..9124ccdaae0e2 100644
--- a/sys/dev/mpt/mpt_freebsd.c
+++ b/sys/dev/mpt/mpt_freebsd.c
@@ -268,11 +268,13 @@ mpt_execute_req(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error)
ntodo = MPT_NSGL(mpt) - 1;
ce->NextChainOffset = (MPT_RQSL(mpt) -
sizeof (SGE_SIMPLE32)) >> 2;
+ ce->Length = MPT_NSGL(mpt)
+ * sizeof (SGE_SIMPLE32);
} else {
ntodo = nleft;
ce->NextChainOffset = 0;
+ ce->Length = ntodo * sizeof (SGE_SIMPLE32);
}
- ce->Length = ntodo * sizeof (SGE_SIMPLE32);
ce->Address = req->req_pbuf +
((char *)se - (char *)mpt_req);
ce->Flags = MPI_SGE_FLAGS_CHAIN_ELEMENT;