Messages in this thread Patch in this message | | | Date | Tue, 28 Jan 2003 17:01:33 -0800 | From | Dave Hansen <> | Subject | [PATCH] fix max PCI bus number |
| |
The Stanford checker found this. -- Dave Hansen haveblue@us.ibm.com --- linux-2.5.59-clean/arch/i386/pci/numa.c Thu Jan 16 18:21:44 2003 +++ linux-2.5.59-numaq-mjb1/arch/i386/pci/numa.c Tue Jan 28 16:31:18 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); | |