Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/isa Call kmem_intr_free() with kmem_intr_al...



details:   https://anonhg.NetBSD.org/src/rev/c87506eca996
branches:  trunk
changeset: 787286:c87506eca996
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sun Jun 09 12:52:33 2013 +0000

description:
Call kmem_intr_free() with kmem_intr_alloc-ed memory instead of free().

diffstat:

 sys/arch/powerpc/isa/isadma_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f669d8fbf868 -r c87506eca996 sys/arch/powerpc/isa/isadma_machdep.c
--- a/sys/arch/powerpc/isa/isadma_machdep.c     Sun Jun 09 09:56:17 2013 +0000
+++ b/sys/arch/powerpc/isa/isadma_machdep.c     Sun Jun 09 12:52:33 2013 +0000
@@ -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 @@
  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);



Home | Main Index | Thread Index | Old Index