* [PATCH] net #7
@ 2001-05-30 0:46 Andrzej Krzysztofowicz
0 siblings, 0 replies; only message in thread
From: Andrzej Krzysztofowicz @ 2001-05-30 0:46 UTC (permalink / raw)
To: Alan Cox, erik; +Cc: kernel list
The following patch validates smc9194 module parameter (needed for array
access)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-30 0:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-30 0:46 [PATCH] net #7 Andrzej Krzysztofowicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®