From 3afbe60d9215552555c882ec784b82f5cdc98429 Mon Sep 17 00:00:00 2001 From: "Bruno G. Albuquerque" Date: Thu, 17 Oct 2002 23:11:00 +0000 Subject: [PATCH] Fix a bug reported by BeFree. It looks the PCi stiff works now. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1567 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kernel/core/module.c b/src/kernel/core/module.c index d7f0ae9eb5..2c6dc48e3e 100644 --- a/src/kernel/core/module.c +++ b/src/kernel/core/module.c @@ -317,6 +317,7 @@ simple_module_info(module_info *mod, const char *file, int offset) /* Record where the module_info can be found */ m->offset = offset; m->file = (char*)kstrdup(file); + m->ref_cnt = 0; /* set the keep_loaded flag */ if (mod->flags & B_KEEP_LOADED) { dprintf("module %s wants to be kept loaded\n", m->name);