Skip to content

Commit

Permalink
[MIPS] Fix oprofile module unloading
Browse files Browse the repository at this point in the history
    
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>
  • Loading branch information
Ralf Baechle committed Apr 27, 2006
1 parent 2be4d50 commit 49e31ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/mips/oprofile/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)

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

0 comments on commit 49e31ca

Please sign in to comment.