diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-10-08 04:46:27 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-10-08 04:46:27 -0400 |
commit | 7cd2541cf2395962daf98ec32a141aba3398a9b2 (patch) | |
tree | 3c8bebb277462ba0de9d44233a970d34056dc45e /kernel/module.c | |
parent | c62f981f9309486ba5546edbb5925f71e441fa65 (diff) | |
parent | cb655d0f3d57c23db51b981648e452988c0223f9 (diff) |
Merge commit 'v2.6.36-rc7' into perf/core
Conflicts:
arch/x86/kernel/module.c
Merge reason: Resolve the conflict, pick up fixes.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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 eba134157ef6..2df46301a7a4 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -1538,6 +1538,7 @@ static int __unlink_module(void *_mod) | |||
1538 | { | 1538 | { |
1539 | struct module *mod = _mod; | 1539 | struct module *mod = _mod; |
1540 | list_del(&mod->list); | 1540 | list_del(&mod->list); |
1541 | module_bug_cleanup(mod); | ||
1541 | return 0; | 1542 | return 0; |
1542 | } | 1543 | } |
1543 | 1544 | ||
@@ -2631,6 +2632,7 @@ static struct module *load_module(void __user *umod, | |||
2631 | if (err < 0) | 2632 | if (err < 0) |
2632 | goto ddebug; | 2633 | goto ddebug; |
2633 | 2634 | ||
2635 | module_bug_finalize(info.hdr, info.sechdrs, mod); | ||
2634 | list_add_rcu(&mod->list, &modules); | 2636 | list_add_rcu(&mod->list, &modules); |
2635 | mutex_unlock(&module_mutex); | 2637 | mutex_unlock(&module_mutex); |
2636 | 2638 | ||
@@ -2656,6 +2658,8 @@ static struct module *load_module(void __user *umod, | |||
2656 | mutex_lock(&module_mutex); | 2658 | mutex_lock(&module_mutex); |
2657 | /* Unlink carefully: kallsyms could be walking list. */ | 2659 | /* Unlink carefully: kallsyms could be walking list. */ |
2658 | list_del_rcu(&mod->list); | 2660 | list_del_rcu(&mod->list); |
2661 | module_bug_cleanup(mod); | ||
2662 | |||
2659 | ddebug: | 2663 | ddebug: |
2660 | if (!mod->taints) | 2664 | if (!mod->taints) |
2661 | dynamic_debug_remove(info.debug); | 2665 | dynamic_debug_remove(info.debug); |