Skip to content

Commit

Permalink
fbcon: Protect free_irq() by MACH_IS_ATARI check
Browse files Browse the repository at this point in the history
Add missing check for Atari in free_irq() call, which could cause problems on
multi-platform m68k kernels.

Reported-by: Brad Boyer <flar@allandria.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
  • Loading branch information
Geert Uytterhoeven committed Dec 28, 2008
1 parent 79f0c9a commit 7f877eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -3455,7 +3455,8 @@ static void fbcon_exit(void)
return;

#ifdef CONFIG_ATARI
free_irq(IRQ_AUTO_4, fb_vbl_handler);
if (MACH_IS_ATARI)
free_irq(IRQ_AUTO_4, fb_vbl_handler);
#endif

kfree((void *)softback_buf);
Expand Down

0 comments on commit 7f877eb

Please sign in to comment.