From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>, haveblue@us.ibm.com
Subject: [PATCH] 7/7 Fix error bounds checking for NUMA-Q
Date: Fri, 28 Feb 2003 13:34:20 -0800 [thread overview]
Message-ID: <361490000.1046468060@flay> (raw)
Patch from Dave Hansen.
Fix simpile bounding error found by some Stanford-checker type thing
to use the proper MAX_MP_BUSSES define instead of a constant.
diff -urpN -X /home/fletch/.diff.exclude 015-notsc/arch/i386/pci/numa.c 016-numa_pci_fix/arch/i386/pci/numa.c
--- 015-notsc/arch/i386/pci/numa.c Thu Jan 9 19:15:56 2003
+++ 016-numa_pci_fix/arch/i386/pci/numa.c Fri Feb 28 08:05:36 2003
@@ -17,7 +17,7 @@ static int __pci_conf1_mq_read (int seg,
{
unsigned long flags;
- if (!value || (bus > 255) || (dev > 31) || (fn > 7) || (reg > 255))
+ if (!value || (bus > MAX_MP_BUSSES) || (dev > 31) || (fn > 7) || (reg > 255))
return -EINVAL;
spin_lock_irqsave(&pci_config_lock, flags);
@@ -45,7 +45,7 @@ static int __pci_conf1_mq_write (int seg
{
unsigned long flags;
- if ((bus > 255) || (dev > 31) || (fn > 7) || (reg > 255))
+ if ((bus > MAX_MP_BUSSES) || (dev > 31) || (fn > 7) || (reg > 255))
return -EINVAL;
spin_lock_irqsave(&pci_config_lock, flags);
reply other threads:[~2003-02-28 21:35 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=361490000.1046468060@flay \
--to=mbligh@aracnet.com \
--cc=haveblue@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.