diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-04-15 01:58:28 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-04-15 01:58:28 +0000 |
commit | 229554b33580f244562735aec69b9edcc7077bda (patch) | |
tree | 79b46ddbcaa86c71d75947f210b9fe01bd2d9331 /sys/arch/amd64 | |
parent | bf10149e754acc94df24ab0d1024ce9e56dd6dc5 (diff) |
bus_dmamap_load_raw didn't set map->dm_mapsize on successful load.
I just spent five hours looking in the wrong place because of this.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/bus_dma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/bus_dma.c b/sys/arch/amd64/amd64/bus_dma.c index 2732db848e4..eb906a4cea5 100644 --- a/sys/arch/amd64/amd64/bus_dma.c +++ b/sys/arch/amd64/amd64/bus_dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bus_dma.c,v 1.22 2009/04/14 16:01:04 oga Exp $ */ +/* $OpenBSD: bus_dma.c,v 1.23 2009/04/15 01:58:27 oga Exp $ */ /* $NetBSD: bus_dma.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */ /*- @@ -371,6 +371,7 @@ _bus_dmamap_load_raw(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, } } + map->dm_mapsize = size; map->dm_nsegs = seg + 1; return (0); } |