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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356065
@ -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 New Issue
Block a user