Initialize the dma tag's bounce_zone to NULL if we didn't allocate it.
This commit is contained in:
parent
91548dbf3b
commit
4042d45aba
@ -427,7 +427,8 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment,
|
||||
}
|
||||
/* Performed initial allocation */
|
||||
newtag->flags |= BUS_DMA_MIN_ALLOC_COMP;
|
||||
}
|
||||
} else
|
||||
newtag->bounce_zone = NULL;
|
||||
if (error != 0)
|
||||
free(newtag, M_DEVBUF);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user