Explicitely set the "allocbuffer" field to NULL when creating a new dmamap.

This commit is contained in:
Olivier Houchard 2006-08-25 15:10:45 +00:00
parent 223d2768ad
commit 5bbbbe1b2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161618

View file

@ -346,6 +346,7 @@ bus_dmamap_create(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp)
} }
*mapp = newmap; *mapp = newmap;
newmap->dmat = dmat; newmap->dmat = dmat;
newmap->allocbuffer = NULL;
dmat->map_count++; dmat->map_count++;
CTR4(KTR_BUSDMA, "%s: tag %p tag flags 0x%x error %d", CTR4(KTR_BUSDMA, "%s: tag %p tag flags 0x%x error %d",