patch-2.3.22 linux/drivers/isdn/isdn_common.c

Next file: linux/drivers/macintosh/mac_keyb.c
Previous file: linux/drivers/isdn/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.21/linux/drivers/isdn/isdn_common.c linux/drivers/isdn/isdn_common.c
@@ -2319,8 +2319,8 @@
 #ifdef COMPAT_HAS_NEW_WAITQ
 	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]);
 	}
 #else
 	memset((char *) d->rcv_waitq, 0, sizeof(struct wait_queue *) * m);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)