Skip to contentSkip to conversation

riscom8: Fix hang on load

PATCH RESEND New Alan Cox 1 participant 1 message Mar 10, 2008 Char and misc drivers

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH RESEND 1/1 riscom8: Fix hang on load

This has been around for a while but nobody reported it until recently. Resubmitting the fix as it's appropriate for 2.6.25

drivers/char/riscom8.c +0 -6
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.25-rc2-mm1/drivers/char/riscom8.c linux-2.6.25-rc2-mm1/drivers/char/riscom8.c
@@ -1620,14 +1617,8 @@
 
 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