lkml.org 
[lkml]   [2008]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] serial_core: Fix baud handling bug I introduced
Dumb bug, not reading the compiler warnings either

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.25-rc3-mm1/drivers/serial/serial_core.c linux-2.6.25-rc3-mm1/drivers/serial/serial_core.c
--- linux.vanilla-2.6.25-rc3-mm1/drivers/serial/serial_core.c 2008-03-10 12:57:53.000000000 +0000
+++ linux-2.6.25-rc3-mm1/drivers/serial/serial_core.c 2008-03-10 13:29:43.000000000 +0000
@@ -337,7 +337,7 @@
struct ktermios *old, unsigned int min, unsigned int max)
{
unsigned int try, baud, altbaud = 38400;
- int hung_up;
+ int hung_up = 0;
upf_t flags = port->flags & UPF_SPD_MASK;

if (flags == UPF_SPD_HI)

\
 
 \ /
  Last update: 2008-03-10 23:15    [W:0.025 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site