Module Name: src
Committed By: kiyohara
Date: Sun Jun 9 12:52:33 UTC 2013
Modified Files:
src/sys/arch/powerpc/isa: isadma_machdep.c
Log Message:
Call kmem_intr_free() with kmem_intr_alloc-ed memory instead of free().
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/powerpc/isa/isadma_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/isa/isadma_machdep.c
diff -u src/sys/arch/powerpc/isa/isadma_machdep.c:1.8 src/sys/arch/powerpc/isa/isadma_machdep.c:1.9
--- src/sys/arch/powerpc/isa/isadma_machdep.c:1.8 Wed Feb 1 09:54:02 2012
+++ src/sys/arch/powerpc/isa/isadma_machdep.c Sun Jun 9 12:52:33 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: isadma_machdep.c,v 1.8 2012/02/01 09:54:02 matt Exp $ */
+/* $NetBSD: isadma_machdep.c,v 1.9 2013/06/09 12:52:33 kiyohara Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isadma_machdep.c,v 1.8 2012/02/01 09:54:02 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isadma_machdep.c,v 1.9 2013/06/09 12:52:33 kiyohara Exp $");
#define ISA_DMA_STATS
@@ -245,7 +245,7 @@ _isa_bus_dmamap_create(bus_dma_tag_t t,
out:
if (error) {
if (map->_dm_cookie != NULL)
- free(map->_dm_cookie, M_DMAMAP);
+ kmem_intr_free(cookiestore, cookiesize);
_bus_dmamap_destroy(t, map);
}
return (error);