mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Initialize the bounce pages list in armv[4|6] DMA maps.
Fixes the crash on the first use of STAILQ_INSERT_TAIL() in add_bounce_page(). Sponsored by: Rubicon Communications, LLC (Netgate)
This commit is contained in:
parent
c094263a24
commit
18346de0cc
2 changed files with 2 additions and 0 deletions
|
|
@ -669,6 +669,7 @@ allocate_map(bus_dma_tag_t dmat, int mflags)
|
|||
return (NULL);
|
||||
}
|
||||
map->segments = (bus_dma_segment_t *)((uintptr_t)map + mapsize);
|
||||
STAILQ_INIT(&map->bpages);
|
||||
return (map);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -735,6 +735,7 @@ allocate_map(bus_dma_tag_t dmat, int mflags)
|
|||
return (NULL);
|
||||
}
|
||||
map->segments = (bus_dma_segment_t *)((uintptr_t)map + mapsize);
|
||||
STAILQ_INIT(&map->bpages);
|
||||
return (map);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue