diff options
author | ps <ps@FreeBSD.org> | 2003-06-26 04:01:34 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2003-06-26 04:01:34 +0000 |
commit | 92ae9f55223426f0746c13f5cb430ba3d7d2ac6b (patch) | |
tree | 0a9e4163d3adecbe1fec4506e7324cf75bc8d127 | |
parent | a6cc46f9c7752bbd15729e684d4428adbefd4069 (diff) | |
download | FreeBSD-src-92ae9f55223426f0746c13f5cb430ba3d7d2ac6b.zip FreeBSD-src-92ae9f55223426f0746c13f5cb430ba3d7d2ac6b.tar.gz |
Give the correct size for the command map to busdma.
-rw-r--r-- | sys/dev/ciss/ciss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 9608a15..ed76fed 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -758,7 +758,7 @@ ciss_init_requests(struct ciss_softc *sc) return(ENOMEM); } bus_dmamap_load(sc->ciss_command_dmat, sc->ciss_command_map, sc->ciss_command, - sizeof(struct ciss_command) * sc->ciss_max_requests, + CISS_COMMAND_ALLOC_SIZE * sc->ciss_max_requests, ciss_command_map_helper, sc, 0); bzero(sc->ciss_command, CISS_COMMAND_ALLOC_SIZE * sc->ciss_max_requests); |