Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49e31ca8 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Fix oprofile module unloading


    
When unloading oprofile module with timer-mode, oprofile_arch_exit
dereferences a NULL pointer.
    
Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 2be4d502
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -114,5 +114,6 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)

void oprofile_arch_exit(void)
{
	if (model)
		model->exit();
}