Fix a dangling {
This commit is contained in:
parent
a6b989ffbf
commit
9428157dbd
@ -384,7 +384,7 @@ bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map)
|
|||||||
*/
|
*/
|
||||||
if (map != &nobounce_dmamap)
|
if (map != &nobounce_dmamap)
|
||||||
panic("bus_dmamem_free: Invalid map freed\n");
|
panic("bus_dmamem_free: Invalid map freed\n");
|
||||||
if ((dmat->maxsize <= PAGE_SIZE) && dmat->lowaddr >= ptoa(Maxmem)) {
|
if ((dmat->maxsize <= PAGE_SIZE) && dmat->lowaddr >= ptoa(Maxmem))
|
||||||
free(vaddr, M_DEVBUF);
|
free(vaddr, M_DEVBUF);
|
||||||
else
|
else
|
||||||
contigfree(vaddr, dmat->maxsize, M_DEVBUF);
|
contigfree(vaddr, dmat->maxsize, M_DEVBUF);
|
||||||
|
Loading…
Reference in New Issue
Block a user