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:
Augustin Cavalier 2022-06-10 23:00:49 -04:00
parent ca76d4c336
commit 802e16c55a
1 changed files with 1 additions and 0 deletions

View File

@ -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,