LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] serial_core: Fix baud handling bug I introduced
@ 2008-03-10 21:58 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2008-03-10 21:58 UTC (permalink / raw)
  To: akpm, linux-kernel

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-10 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-10 21:58 [PATCH] serial_core: Fix baud handling bug I introduced Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).