mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 10:40:19 -04:00
Initializae lastaddr to 0 in bus_dmamap_load_uio so that
_bus_dmamap_load_buffer won't (potentially) be confused. Discovered by: gcc 4.2 MFC after: 3 days
This commit is contained in:
parent
6c7d0cff3f
commit
2d5f1502fe
1 changed files with 1 additions and 0 deletions
|
|
@ -869,6 +869,7 @@ bus_dmamap_load_uio(bus_dma_tag_t dmat, bus_dmamap_t map,
|
|||
nsegs = 0;
|
||||
error = 0;
|
||||
first = 1;
|
||||
lastaddr = (bus_addr_t) 0;
|
||||
for (i = 0; i < uio->uio_iovcnt && resid != 0 && !error; i++) {
|
||||
/*
|
||||
* Now at the first iovec to load. Load each iovec
|
||||
|
|
|
|||
Loading…
Reference in a new issue