diff options
author | 2007-05-29 16:56:01 +0000 | |
---|---|---|
committer | 2007-05-29 16:56:01 +0000 | |
commit | de5436842d7c3d6aaddd0bb2a254e7595085ec24 (patch) | |
tree | 2aa3b998a809b7900f3791bbf58c32c0e492a5fc /sys | |
parent | use the right capitalization for `EBus' and `SBus' (diff) | |
download | wireguard-openbsd-de5436842d7c3d6aaddd0bb2a254e7595085ec24.tar.xz wireguard-openbsd-de5436842d7c3d6aaddd0bb2a254e7595085ec24.zip |
Fix bus_dmamap_sync size argument.
Diffstat (limited to 'sys')
-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); |