diff options
author | mux <mux@FreeBSD.org> | 2003-01-18 18:33:56 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-01-18 18:33:56 +0000 |
commit | baad1fb8f84de5b15ee509ee3042c76622f53f24 (patch) | |
tree | 639219ac9e0d10a54d5a3fb79e858c2c64ac8586 /sys | |
parent | 700b439510b9575d22d1d5cd0501561ae17e3491 (diff) | |
download | FreeBSD-src-baad1fb8f84de5b15ee509ee3042c76622f53f24.zip FreeBSD-src-baad1fb8f84de5b15ee509ee3042c76622f53f24.tar.gz |
Don't try to free() map in bus_dmamap_destroy() when it's
set to &nobounce_dmamap. A similar bug was fixed by wpaul
in revision 1.19 of sys/alpha/alpha/busdma_machdep.c.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ia64/ia64/busdma_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/busdma_machdep.c b/sys/ia64/ia64/busdma_machdep.c index 95b9521..6496c9b 100644 --- a/sys/ia64/ia64/busdma_machdep.c +++ b/sys/ia64/ia64/busdma_machdep.c @@ -325,7 +325,7 @@ bus_dmamap_destroy(bus_dma_tag_t dmat, bus_dmamap_t map) #endif } - if (map != NULL) { + if (map != NULL && map != &nobounce_dmamap) { if (STAILQ_FIRST(&map->bpages) != NULL) return (EBUSY); free(map, M_DEVBUF); |