NetBSD-Bugs archive

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

kern/37801: Little fix for kern_module.c



>Number:         37801
>Category:       kern
>Synopsis:       Little fix for kern_module.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 18 20:10:00 +0000 2008
>Originator:     jorge niedbalski ramirez
>Release:        4.0
>Organization:
critix
>Environment:
NetBSD  4.0 NetBSD 4.0 (GENERIC.MP) #0: Sun Dec 16 00:47:41 PST 2007  
builds@wb34:/home/builds/ab/ne
tbsd-4-0-RELEASE/i386/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/
GENERIC.MP i386


>Description:
Simple error in data structure.
>How-To-Repeat:
Compile the i386 kernel image.
>Fix:
Index: sys/kern/kern_module.c
===================================================================
RCS file: /cvsroot/src/sys/kern/kern_module.c,v
retrieving revision 1.3
diff -u -r1.3 kern_module.c
--- sys/kern/kern_module.c      17 Jan 2008 22:35:53 -0000      1.3
+++ sys/kern/kern_module.c      18 Jan 2008 18:19:56 -0000
@@ -551,7 +551,7 @@
        TAILQ_REMOVE(&pending, mod, mod_chain);
        TAILQ_INSERT_TAIL(&module_list, mod, mod_chain);
        for (i = 0; i < mod->mod_nrequired; i++) {
-               KASSERT(mod_required[i] != NULL);
+               KASSERT(mod->mod_required[i] != NULL);
                mod->mod_required[i]->mod_refcnt++;
        }
        if (modp != NULL) {





Home | Main Index | Thread Index | Old Index