-/* $OpenBSD: nvme.c,v 1.99 2021/05/31 04:48:35 dlg Exp $ */
+/* $OpenBSD: nvme.c,v 1.100 2021/06/02 19:11:02 patrick Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
bus_dmamap_sync(sc->sc_dmat,
NVME_DMA_MAP(sc->sc_ccb_prpls),
ccb->ccb_prpl_off,
- sizeof(*ccb->ccb_prpl) * dmap->dm_nsegs - 1,
+ sizeof(*ccb->ccb_prpl) * (dmap->dm_nsegs - 1),
BUS_DMASYNC_PREWRITE);
}
bus_dmamap_sync(sc->sc_dmat,
NVME_DMA_MAP(sc->sc_ccb_prpls),
ccb->ccb_prpl_off,
- sizeof(*ccb->ccb_prpl) * dmap->dm_nsegs - 1,
+ sizeof(*ccb->ccb_prpl) * (dmap->dm_nsegs - 1),
BUS_DMASYNC_POSTWRITE);
}