Skip to contentSkip to conversation

fix unitilized spinlock in cpm driver when used as console

PATCH In review Greg Weeks 2 participants 3 messages Mar 16, 2005

lore
Share & tools
lore

Greg Weeks

author
#0 lore raw

PATCH 1/1 fix unitilized spinlock in cpm driver when used as console

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

--- 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;