Skip to contentSkip to conversation

serial_core: Fix baud handling bug I introduced

PATCH New Alan Cox 1 participant 1 message Mar 10, 2008

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 serial_core: Fix baud handling bug I introduced

Dumb bug, not reading the compiler warnings either

drivers/serial/serial_core.c +1 -1
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
@@ -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)