Re: divide by zero in serial port driver

Philipp Rumpf (prumpf@jcsbs.lanobis.de)
Sun, 29 Nov 1998 19:39:33 +0100


--Pd0ReVV5GZGQvF3a
Content-Type: text/plain; charset=us-ascii

On Sun, Nov 29, 1998 at 05:44:20PM +0100, Mikulas Patocka wrote:
> When I was trying to configure serial port using setserial, I got
> divide-by-zero kernel error. I can't reproduce it and I don't know where
> it happened - modules are loaded each time in different order as I use
> devices :-(

This patch should fix it.

Philipp Rumpf

--Pd0ReVV5GZGQvF3a
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch.serial"

--- linux/drivers/char/serial.c Sat Nov 28 11:49:58 1998
+++ linux-prumpf/drivers/char/serial.c Sun Nov 29 19:37:19 1998
@@ -3441,6 +3441,7 @@
break;
case 9600:
default:
+ baud = 9600;
cflag |= B9600;
break;
}

--Pd0ReVV5GZGQvF3a--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/