PATCH: fix panic in 2.3.18 ISDN

Henner Eisen (eis@baty.hanse.de)
Sat, 2 Oct 1999 03:04:59 +0200


Hi,

the following patch fixes a bug in wait queue initialization which has caused
panics for me under certain cirumstances (e.g. certain "isdnctrl hangup" and
"ifconfig down" scenarios). (diff context kept small intentionally to
reduce possibilty of patch conflicts with different cvs versions)

Henner

--- linux/drivers/isdn/isdn_common.c.orig Sat Oct 2 02:44:19 1999
+++ linux/drivers/isdn/isdn_common.c Sat Oct 2 02:47:18 1999
@@ -48,2 +48,5 @@
* First Fax G3 implementations.
*
+ * Revision 1.88 1999/10/02 00:39:26 he
+ * Fixed a 2.3.x wait queue initialization (was causing panics)
+ *
@@ -2320,5 +2323,5 @@
d->snd_waitq = d->rcv_waitq + m;
for (j = 0; j < m; j++) {
- init_waitqueue_head(&d->rcv_waitq[m]);
- init_waitqueue_head(&d->snd_waitq[m]);
+ init_waitqueue_head(&d->rcv_waitq[j]);
+ init_waitqueue_head(&d->snd_waitq[j]);
}

-
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/