mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Don't try to free() map in bus_dmamap_destroy() when it's
set to &nobounce_dmamap. A similar bug was fixed by wpaul in revision 1.19 of sys/alpha/alpha/busdma_machdep.c.
This commit is contained in:
parent
411359429f
commit
1d8dc7e4a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109490
@ -325,7 +325,7 @@ bus_dmamap_destroy(bus_dma_tag_t dmat, bus_dmamap_t map)
|
||||
#endif
|
||||
}
|
||||
|
||||
if (map != NULL) {
|
||||
if (map != NULL && map != &nobounce_dmamap) {
|
||||
if (STAILQ_FIRST(&map->bpages) != NULL)
|
||||
return (EBUSY);
|
||||
free(map, M_DEVBUF);
|
||||
|
Loading…
Reference in New Issue
Block a user