It is currently Mon, 26 Oct 2020 04:05:46 GMT



 
Author Message
 fix max PCI bus number

The Stanford checker found this.
--
Dave Hansen
haveb...@us.ibm.com

[ numa-max-busnum-2.5.59-0.patch < 1K ]
--- 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);



 Sun, 17 Jul 2005 02:10:24 GMT   
 fix max PCI bus number

| The Stanford checker found this.

Yep, looks like my patch.  I'll remove it from my patchset.

--
~Randy

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



 Sun, 17 Jul 2005 04:40:14 GMT   
 
   [ 2 post ] 

Similar Threads

1. Please help - pci bus number in solaris 10

2. NUMA-Q: remove PCI bus number mangling

3. PCI bus vs. S-bus

4. VL-Bus Vs. PCI bus

5. Tuning PCI latency/max_grant or priority settings on Sun Blade 150 PCI-bus

6. 3 PCI buses, not all found in /proc/pci or lspci, but scanpci sees

7. 3 PCI buses, not all found in /proc/pci or lspci, but scanpci sees all

8. Dosemu on a PCI bus with a PCI video card

9. hauppauge wintv pci fm - sound over pci bus


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software