Initialize the dma tag's bounce_zone to NULL if we didn't allocate it.

This commit is contained in:
cognet 2007-06-10 12:33:01 +00:00
parent 91548dbf3b
commit 4042d45aba

View File

@ -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