diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2007-05-29 16:56:02 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2007-05-29 16:56:02 +0000 |
commit | 8719c126f654083ba85d41e39f5d8e9666235239 (patch) | |
tree | 57cc4af3f9239327257a6f4b8f9fc81810db16d3 /sys/dev/pci | |
parent | 999a92415e6bc03dff3c8836b6755f19400c5429 (diff) |
Fix bus_dmamap_sync size argument.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/ips.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c index c9d163acff9..713aaab75f8 100644 --- a/sys/dev/pci/ips.c +++ b/sys/dev/pci/ips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ips.c,v 1.27 2007/05/28 17:44:54 grange Exp $ */ +/* $OpenBSD: ips.c,v 1.28 2007/05/29 16:56:01 grange Exp $ */ /* * Copyright (c) 2006, 2007 Alexander Yurchenko <grange@openbsd.org> @@ -660,7 +660,8 @@ ips_cmd(struct ips_softc *sc, int code, int drive, u_int32_t lba, void *data, sc->sc_dev.dv_xname); return (1); /* XXX: return code */ } - bus_dmamap_sync(sc->sc_dmat, ccb->c_dmam, 0, size, + bus_dmamap_sync(sc->sc_dmat, ccb->c_dmam, 0, + ccb->c_dmam->dm_mapsize, flags & IPS_CCB_READ ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE); |