Re: oops with 1.99.14 and isdn

Henning Schmiedehausen (barnard@forge.franken.de)
8 Jun 1996 15:26:51 +0200


fluido@marktest.pt (Carlo E. Prelz) writes:

>Well, I admit it: I was playing with ISDN (a line, a board and noone to
>talk to...) Anyway, when I started two version of ucu - a terminal
>emulator similar to cu - and dialed the same isdn number - mine - from two
>different sessions, I got the following

You should apply the following two patches. They came from the i4l
Mailing List.

=========================================================================
--- linux.old/drivers/isdn/isdn_common.c Sun Jun 2 00:17:09 1996
+++ linux/drivers/isdn/isdn_common.c Mon Jun 3 20:42:12 1996
@@ -1713,7 +1713,7 @@
cmd.driver = i;
cmd.arg = 0;
cmd.command = ISDN_CMD_LOCK;
- (void) dev->drv[i]->interface->command(&cmd);
+ (void) dev->drv[d]->interface->command(&cmd);
restore_flags(flags);
return i;
} else {
@@ -1724,7 +1724,7 @@
cmd.driver = i;
cmd.arg = 0;
cmd.command = ISDN_CMD_LOCK;
- (void) dev->drv[i]->interface->command(&cmd);
+ (void) dev->drv[d]->interface->command(&cmd);
restore_flags(flags);
return i;
}
=========================================================================

diff -u -r linux-1.99.14/drivers/isdn/teles/callc.c linux-1.3-current/drivers/isdn/teles/callc.c
--- linux-1.99.14/drivers/isdn/teles/callc.c Sun Jun 2 14:41:39 1996
+++ linux-1.3-current/drivers/isdn/teles/callc.c Sun Jun 2 02:29:14 1996
@@ -1388,6 +1388,11 @@
int err, i;
byte *ptr;

+ if (!chanp->data_open) {
+ printk(KERN_DEBUG "teles_writebuf: channel not open\n");
+ return (0);
+ }
+
err = BufPoolGet(&ibh, st->l1.sbufpool, GFP_ATOMIC, st, 21);
if (err)
return -ENOMEM;

Ciao
Henning

-- 
Henning Schmiedehausen       ...side by side in orbit... around a fairer SUN.
barnard@forge.franken.de     http://www.franken.de/users/forge/henning

In accordance with the normal UNIX design philosophy nuke(8) does not prevent you from nuking yourself. -- nuke(8) manpage