lkml.org 
[lkml]   [2003]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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);
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.028 / U:37.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site