projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be4d50
)
[MIPS] Fix oprofile module unloading
author
Ralf Baechle
<ralf@linux-mips.org>
Mon, 24 Apr 2006 09:48:54 +0000
(10:48 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Thu, 27 Apr 2006 14:13:49 +0000
(15:13 +0100)
When unloading oprofile module with timer-mode, oprofile_arch_exit
dereferences a NULL pointer.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/oprofile/common.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/oprofile/common.c
b/arch/mips/oprofile/common.c
index 935dd851f480c0065c37d4275c71f40b663aab5b..49ef8fd338d62984d1f97066286b03e9b6c17df1 100644
(file)
--- a/
arch/mips/oprofile/common.c
+++ b/
arch/mips/oprofile/common.c
@@
-114,5
+114,6
@@
int __init oprofile_arch_init(struct oprofile_operations *ops)
void oprofile_arch_exit(void)
{
- model->exit();
+ if (model)
+ model->exit();
}