[PATCH] cpm_uart: Fix spinlock initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The lack of spin_lock_init causes badness in the preempt configuration.

Signed-off-by: Vitaly Bordug <[email protected]>
Signed-off-by: Kumar Gala <[email protected]>

---
commit d6dee08c314c1952921adc99e8f5ff6c332341ef
tree 96ca76ab7d75cf808287af50c88ed7d1aed49923
parent 51a75dcea8fe0407f06467de36e258616cda68f9
author Kumar K. Gala <[email protected]> Fri, 12 Aug 2005 11:26:44 -0500
committer Kumar K. Gala <[email protected]> Fri, 12 Aug 2005 11:26:44 -0500

 drivers/serial/cpm_uart/cpm_uart_core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/serial/cpm_uart/cpm_uart_core.c b/drivers/serial/cpm_uart/cpm_uart_core.c
--- a/drivers/serial/cpm_uart/cpm_uart_core.c
+++ b/drivers/serial/cpm_uart/cpm_uart_core.c
@@ -1087,6 +1087,7 @@ static int __init cpm_uart_console_setup
 	port =
 	    (struct uart_port *)&cpm_uart_ports[cpm_uart_port_map[co->index]];
 	pinfo = (struct uart_cpm_port *)port;
+	spin_lock_init(&port->lock);
 
 	pinfo->flags |= FLAG_CONSOLE;
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux