diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-08-25 09:12:35 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-08-25 09:12:35 +0000 |
commit | c7fc24dc4420057f103afe8fc64524ebc25c5d37 (patch) | |
tree | 3682407a599b8f9f03fc096298134cafba1c9b2f /kernel/module.c | |
parent | 1d793fade8b063fde3cf275bf1a5c2d381292cd9 (diff) |
o Merge with Linux 2.1.116.
o New Newport console code.
o New G364 console code.
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/module.c b/kernel/module.c index 2d0665246..5225c6709 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -323,7 +323,7 @@ sys_init_module(const char *name_user, struct module *mod_user) dep->ref = mod; dep->next_ref = d->refs; d->refs = dep; - /* Being referenced by a dependant module counts as a + /* Being referenced by a dependent module counts as a use as far as kmod is concerned. */ d->flags |= MOD_USED_ONCE; } @@ -961,7 +961,8 @@ get_module_symbol(char *modname, char *symname) for (mp = module_list; mp; mp = mp->next) { if (((modname == NULL) || (strcmp(mp->name, modname) == 0)) && - (mp->flags == MOD_RUNNING) && (mp->nsyms > 0)) { + (mp->flags & (MOD_RUNNING | MOD_DELETED)) == MOD_RUNNING && + (mp->nsyms > 0)) { for (i = mp->nsyms, sym = mp->syms; i > 0; --i, ++sym) { |