patch-2.1.103 linux/drivers/char/esp.c

Next file: linux/drivers/isdn/hisax/hfc_2bds0.c
Previous file: linux/drivers/char/console.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.102/linux/drivers/char/esp.c linux/drivers/char/esp.c
@@ -2381,13 +2381,15 @@
 	
 	init_bh(ESP_BH, do_serial_bh);
 
-	for (i = 0; i < NR_PRIMARY; i++)
-		if (irq[i] != 0)
+	for (i = 0; i < NR_PRIMARY; i++) {
+		if (irq[i] != 0) {
 			if ((irq[i] < 2) || (irq[i] > 15) || (irq[i] == 6) ||
 			    (irq[i] == 8) || (irq[i] == 13))
 				irq[i] = 0;
 			else if (irq[i] == 2)
 				irq[i] = 9;
+		}
+	}
 
 	if ((dma != 1) && (dma != 3))
 		dma = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov