[PATCH] fix max PCI bus number

From: Dave Hansen (haveblue@us.ibm.com)
Date: Tue Jan 28 2003 - 20:01:33 EST


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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 22:00:20 EST