[prev in list] [next in list] [prev in thread] [next in thread]
List: git-commits-head
Subject: [PATCH] Fix error bounds checking for NUMA-Q
From: Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date: 2003-02-28 23:02:56
[Download RAW message or body]
ChangeSet 1.1022.4.7, 2003/02/28 15:02:56-08:00, mbligh@aracnet.com
[PATCH] Fix error bounds checking for NUMA-Q
Patch from Dave Hansen.
Fix simple bounding error found by some Stanford-checker type thing
to use the proper MAX_MP_BUSSES define instead of a constant.
# This patch includes the following deltas:
# ChangeSet 1.1022.4.6 -> 1.1022.4.7
# arch/i386/pci/numa.c 1.11 -> 1.12
#
numa.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/arch/i386/pci/numa.c b/arch/i386/pci/numa.c
--- a/arch/i386/pci/numa.c Fri Feb 28 16:07:57 2003
+++ b/arch/i386/pci/numa.c Fri Feb 28 16:07:57 2003
@@ -17,7 +17,7 @@
{
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 @@
{
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);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic