[PATCH] fix max PCI bus number

Dave Hansen (haveblue@us.ibm.com)
Tue, 28 Jan 2003 17:01:33 -0800


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-4436-1043802302-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

The Stanford checker found this.

-- 
Dave Hansen
haveblue@us.ibm.com

--=_courier-4436-1043802302-0001-2 Content-Type: text/plain; name="numa-max-busnum-2.5.59-0.patch"; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="numa-max-busnum-2.5.59-0.patch"

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

--=_courier-4436-1043802302-0001-2--