Source-Changes-HG archive

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

[src/trunk]: src/sys/kern lkmunreserve: free memory to the correct vm_map whe...



details:   https://anonhg.NetBSD.org/src/rev/ca85aa045da2
branches:  trunk
changeset: 573230:ca85aa045da2
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Jan 23 08:41:02 2005 +0000

description:
lkmunreserve: free memory to the correct vm_map when kernel_map != lkm_map.

diffstat:

 sys/kern/kern_lkm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 189da47867de -r ca85aa045da2 sys/kern/kern_lkm.c
--- a/sys/kern/kern_lkm.c       Sun Jan 23 08:39:51 2005 +0000
+++ b/sys/kern/kern_lkm.c       Sun Jan 23 08:41:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lkm.c,v 1.81 2004/12/30 12:12:16 jdolecek Exp $   */
+/*     $NetBSD: kern_lkm.c,v 1.82 2005/01/23 08:41:02 yamt Exp $       */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lkm.c,v 1.81 2004/12/30 12:12:16 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lkm.c,v 1.82 2005/01/23 08:41:02 yamt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_malloclog.h"
@@ -273,7 +273,7 @@
        if (curp && curp->syms) {
                if (delsymtab)
                        ksyms_delsymtab(curp->private.lkm_any->lkm_name);
-               uvm_km_free(kernel_map, curp->syms, curp->sym_size);/**/
+               LKM_SPACE_FREE(curp->syms, curp->sym_size);
                curp->syms = 0;
        }
        /*



Home | Main Index | Thread Index | Old Index