public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* [patch] fix unitilized spinlock in cpm driver when used as console
@ 2005-03-16 16:44 Greg Weeks
  2005-03-16 16:52 ` Kumar Gala
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Weeks @ 2005-03-16 16:44 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 122 bytes --]

Fix unitilized spinlock in the cpm scc driver when used as console.

Signed-off-by: Greg Weeks <greg.weeks@timesys•com>



[-- Attachment #2: cpm.console.spinlock.patch --]
[-- Type: text/x-patch, Size: 316 bytes --]

--- all/drivers/serial/cpm_uart/cpm_uart_core.c-orig
+++ all/drivers/serial/cpm_uart/cpm_uart_core.c

@@ -1038,6 +1038,7 @@
 
 	port =
 	    (struct uart_port *)&cpm_uart_ports[cpm_uart_port_map[co->index]];
+	spin_lock_init(&(port->lock));
 	pinfo = (struct uart_cpm_port *)port;
 	
 	pinfo->flags |= FLAG_CONSOLE;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-16 18:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-16 16:44 [patch] fix unitilized spinlock in cpm driver when used as console Greg Weeks
2005-03-16 16:52 ` Kumar Gala
2005-03-16 18:20   ` Greg Weeks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox