Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Only attempt to remove symbol table from DDB's list...



details:   https://anonhg.NetBSD.org/src/rev/f71c95ac0334
branches:  trunk
changeset: 473211:f71c95ac0334
user:      tron <tron%NetBSD.org@localhost>
date:      Tue May 25 00:16:08 1999 +0000

description:
Only attempt to remove symbol table from DDB's lists of symbol tables
if we really loaded one.

diffstat:

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

diffs (36 lines):

diff -r 08d8aca2e906 -r f71c95ac0334 sys/kern/kern_lkm.c
--- a/sys/kern/kern_lkm.c       Tue May 25 00:09:00 1999 +0000
+++ b/sys/kern/kern_lkm.c       Tue May 25 00:16:08 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lkm.c,v 1.47 1999/03/24 05:51:23 mrg Exp $        */
+/*     $NetBSD: kern_lkm.c,v 1.48 1999/05/25 00:16:08 tron Exp $       */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -157,10 +157,13 @@
        if (lkm_state == LKMS_IDLE)
                return;
 
+       if (curp && curp->syms) {
 #ifdef DDB
-       if (curp && curp->private.lkm_any && curp->private.lkm_any->lkm_name)
-           db_del_symbol_table(curp->private.lkm_any->lkm_name);
+               db_del_symbol_table(curp->private.lkm_any->lkm_name);
 #endif
+               uvm_km_free(kernel_map, curp->syms, curp->sym_size);/**/
+               curp->syms = 0;
+       }
        /*
         * Actually unreserve the memory
         */
@@ -168,10 +171,6 @@
                uvm_km_free(kernel_map, curp->area, curp->size);/**/
                curp->area = 0;
        }
-       if (curp && curp->syms) {
-               uvm_km_free(kernel_map, curp->syms, curp->sym_size);/**/
-               curp->syms = 0;
-       }
        lkm_state = LKMS_IDLE;
 }
 



Home | Main Index | Thread Index | Old Index