public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 7/7 Fix error bounds checking for NUMA-Q
@ 2003-02-28 21:34 Martin J. Bligh
  0 siblings, 0 replies; only message in thread
From: Martin J. Bligh @ 2003-02-28 21:34 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, haveblue

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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-28 21:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-28 21:34 [PATCH] 7/7 Fix error bounds checking for NUMA-Q Martin J. Bligh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox