mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
[MIPS] Fix oprofile module unloading
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>
This commit is contained in:
parent
2be4d50295
commit
49e31ca838
1 changed files with 2 additions and 1 deletions
|
|
@ -114,5 +114,6 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
|
|||
|
||||
void oprofile_arch_exit(void)
|
||||
{
|
||||
model->exit();
|
||||
if (model)
|
||||
model->exit();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue