diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 2001-08-14 21:58:04 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 2001-08-14 21:58:04 +0000 |
| commit | eff5fcbb06b9ac23e7394ada12d1c93ca1b3dba3 (patch) | |
| tree | f84f323e32b1770cd121c901bc991c4a10f1cf24 /sys/alpha | |
| parent | 8fa227552b6d5e238f547a4af6985e49888c8dc0 (diff) | |
Notes
Diffstat (limited to 'sys/alpha')
| -rw-r--r-- | sys/alpha/alpha/busdma_machdep.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/alpha/alpha/busdma_machdep.c b/sys/alpha/alpha/busdma_machdep.c index aa92602845ef..cda7a7023e61 100644 --- a/sys/alpha/alpha/busdma_machdep.c +++ b/sys/alpha/alpha/busdma_machdep.c @@ -325,7 +325,13 @@ bus_dmamap_destroy(bus_dma_tag_t dmat, bus_dmamap_t map) if (map != NULL) { if (STAILQ_FIRST(&map->bpages) != NULL) return (EBUSY); - free(map, M_DEVBUF); + /* + * The nobounce_dmamap map is not dynamically + * allocated, thus we should on no account try to + * free it. + */ + if (map != &nobounce_dmamap) + free(map, M_DEVBUF); } dmat->map_count--; return (0); |
