Skip to content

Commit

Permalink
riscom8: Fix hang on load
Browse files Browse the repository at this point in the history
This has been around for a while but nobody reported it until recently.
Resubmitting the fix as it's appropriate for 2.6.25

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Mar 10, 2008
1 parent cdeeeae commit f4299e1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/char/riscom8.c
Original file line number Diff line number Diff line change
Expand Up @@ -1620,14 +1620,8 @@ static int __init rc_init_drivers(void)

static void rc_release_drivers(void)
{
unsigned long flags;

spin_lock_irqsave(&riscom_lock, flags);

tty_unregister_driver(riscom_driver);
put_tty_driver(riscom_driver);

spin_unlock_irqrestore(&riscom_lock, flags);
}

#ifndef MODULE
Expand Down

0 comments on commit f4299e1

Please sign in to comment.