Oops, add back a free() call that I mistakenly removed in

my last commit.
This commit is contained in:
Maxime Henrion 2003-07-01 21:20:51 +00:00
parent e7b883c427
commit 3b8caa9bab

View file

@ -397,6 +397,7 @@ bus_dmamap_destroy(bus_dma_tag_t dmat, bus_dmamap_t map)
if (map != NULL && map != &nobounce_dmamap) {
if (STAILQ_FIRST(&map->bpages) != NULL)
return (EBUSY);
free(map, M_DEVBUF);
}
dmat->map_count--;
return (0);