Source-Changes-HG archive

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

[src/netbsd-3]: src/sys/arch/xen/x86 Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/f54a028fc48e
branches:  netbsd-3
changeset: 577049:f54a028fc48e
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Aug 25 20:52:46 2005 +0000

description:
Pull up following revision(s) (requested by bouyer in ticket #696):
        sys/arch/xen/x86/xen_bus_dma.c: revision 1.3
Fix a memory leak. Thanks to YAMAMOTO Takashi for the notice.

diffstat:

 sys/arch/xen/x86/xen_bus_dma.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 32585af6dd8e -r f54a028fc48e sys/arch/xen/x86/xen_bus_dma.c
--- a/sys/arch/xen/x86/xen_bus_dma.c    Thu Aug 25 20:52:17 2005 +0000
+++ b/sys/arch/xen/x86/xen_bus_dma.c    Thu Aug 25 20:52:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xen_bus_dma.c,v 1.3.2.3 2005/08/25 20:52:17 tron Exp $ */
+/*     $NetBSD: xen_bus_dma.c,v 1.3.2.4 2005/08/25 20:52:46 tron Exp $ */
 /*     NetBSD bus_dma.c,v 1.21 2005/04/16 07:53:35 yamt Exp */
 
 /*-
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_bus_dma.c,v 1.3.2.3 2005/08/25 20:52:17 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_bus_dma.c,v 1.3.2.4 2005/08/25 20:52:46 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -201,6 +201,7 @@
                         */
                        printf("_xen_bus_dmamem_alloc_range: no way to "
                            "enforce address range\n");
+                       uvm_pglistfree(&mlist);
                        return EINVAL;
                }
                if (bus_curaddr == (bus_lastaddr + PAGE_SIZE)) {



Home | Main Index | Thread Index | Old Index