1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-16 15:11:52 +00:00

Give the correct size for the command map to busdma.

This commit is contained in:
Paul Saab 2003-06-26 04:01:34 +00:00
parent 6351f43f14
commit be241f79bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116867

View File

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