diff options
author | gibbs <gibbs@FreeBSD.org> | 1999-08-16 01:51:38 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1999-08-16 01:51:38 +0000 |
commit | eac569c095293fabb1bc2043fb4c4f3431f63029 (patch) | |
tree | 0228cec28e458dee2107ed4ecfc880d0df2a8277 /sys/amd64 | |
parent | a244527220884f3efbcafd47846366f9960bc9f4 (diff) | |
download | FreeBSD-src-eac569c095293fabb1bc2043fb4c4f3431f63029.zip FreeBSD-src-eac569c095293fabb1bc2043fb4c4f3431f63029.tar.gz |
Fix a bug in busdma_mem_free() where we were improperly checking
the map associated with the region to free.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/busdma_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/busdma_machdep.c b/sys/amd64/amd64/busdma_machdep.c index 9eb79b0..bebec68 100644 --- a/sys/amd64/amd64/busdma_machdep.c +++ b/sys/amd64/amd64/busdma_machdep.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: busdma_machdep.c,v 1.12 1998/12/14 05:35:56 dillon Exp $ + * $Id: busdma_machdep.c,v 1.13 1999/07/02 05:12:11 mjacob Exp $ */ #include <sys/param.h> @@ -353,7 +353,7 @@ bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map) * dmamem does not need to be bounced, so the map should be * NULL */ - if (map != &nobounce_dmamap) + if (map != NULL) panic("bus_dmamem_free: Invalid map freed\n"); /* XXX There is no "contigfree" and "free" doesn't work */ if ((dmat->maxsize <= PAGE_SIZE) && dmat->lowaddr >= ptoa(Maxmem)) |