freebsd_network: Add missing store of the passed buffer length.
This broke bouncing of anything not an mbuf. Confirmed to fix #17778, and may fix other problems too.
This commit is contained in:
parent
ca76d4c336
commit
802e16c55a
|
@ -410,6 +410,7 @@ bus_dmamap_load(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
|
|||
|
||||
map->buffer_type = bus_dmamap::BUFFER_TYPE_SIMPLE;
|
||||
map->buffer = buf;
|
||||
map->buffer_length = buflen;
|
||||
|
||||
nsegs = lastaddr = 0;
|
||||
error = _bus_load_buffer(dmat, map->bounce_buffer, buflen, flags,
|
||||
|
|
Loading…
Reference in New Issue