diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-08 09:58:55 +0100 | 
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-08 09:58:55 +0100 | 
| commit | 552dc340bce3b28f4af33c9134adafa5efacf1c9 (patch) | |
| tree | 8ec5d6d4f7462e92baa0732aa2c47cc33a0b851c /kernel/module.c | |
| parent | a9fda02bfc91a281cd812ae15dabe6bfb9574f90 (diff) | |
| parent | ee621dd619b9a85eced150fc06e352fef54cfda0 (diff) | |
Merge branch 'for_rmk' of git://github.com/at91linux/linux-2.6-at91 into devel-stable
Diffstat (limited to 'kernel/module.c')
| -rw-r--r-- | kernel/module.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c index d0b5f8db11b..ccd64199184 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1537,6 +1537,7 @@ static int __unlink_module(void *_mod)  {  	struct module *mod = _mod;  	list_del(&mod->list); +	module_bug_cleanup(mod);  	return 0;  } @@ -2625,6 +2626,7 @@ static struct module *load_module(void __user *umod,  	if (err < 0)  		goto ddebug; +	module_bug_finalize(info.hdr, info.sechdrs, mod);  	list_add_rcu(&mod->list, &modules);  	mutex_unlock(&module_mutex); @@ -2650,6 +2652,8 @@ static struct module *load_module(void __user *umod,  	mutex_lock(&module_mutex);  	/* Unlink carefully: kallsyms could be walking list. */  	list_del_rcu(&mod->list); +	module_bug_cleanup(mod); +   ddebug:  	if (!mod->taints)  		dynamic_debug_remove(info.debug);  | 
