From: Andrzej Krzysztofowicz <ankry@green.mif.pg.gda.pl>
To: alan@lxorguk.ukuu.org.uk (Alan Cox), erik@vt.edu
Cc: linux-kernel@vger.kernel.org (kernel list)
Subject: [PATCH] net #7
Date: Wed, 30 May 2001 02:46:08 +0200 (CEST) [thread overview]
Message-ID: <200105300046.CAA04557@green.mif.pg.gda.pl> (raw)
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
reply other threads:[~2001-05-30 0:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200105300046.CAA04557@green.mif.pg.gda.pl \
--to=ankry@green.mif.pg.gda.pl \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=erik@vt.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®