Andrzej
*********************** PATCH 7 *****************************************
diff -uNr linux-2.4.5-ac4/drivers/net/smc9194.c linux/drivers/net/smc9194.c
--- linux-2.4.5-ac4/drivers/net/smc9194.c Wed May 30 01:09:53 2001
+++ linux/drivers/net/smc9194.c Wed May 30 01:14:26 2001
@@ -1581,7 +1581,9 @@
/* copy the parameters from insmod into the device structure */
devSMC9194.base_addr = io;
devSMC9194.irq = irq;
- devSMC9194.if_port = ifport;
+ devSMC9194.if_port =
+ (ifport >= 0 && ifport <= sizeof(interfaces)/sizeof(*interfaces)) ?
+ ifport : 0;
devSMC9194.init = smc_init;
if ((result = register_netdev(&devSMC9194)) != 0)
return result;
-- ======================================================================= Andrzej M. Krzysztofowicz ankry@mif.pg.gda.pl phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Technical University of Gdansk - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/