[RTEMS Project] #3062: When a PCI addreess range is empty PCI Library Programs Bridges with errouneous address range

RTEMS trac trac at rtems.org
Wed Jul 5 18:03:23 UTC 2017


#3062: When a PCI addreess range is empty PCI Library Programs Bridges with
errouneous address range
--------------------------+--------------------
 Reporter:  Jeffrey Hill  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  normal        |  Milestone:
Component:  General       |    Version:  4.12
 Severity:  normal        |   Keywords:
--------------------------+--------------------
 It looks like defensive code as below should be added to the top of
 pci_set_bar in pci_cfg_auto.c so that, when the bridge address range is
 empty, erroneous address ranges are not programmed into the bridge device.

 {{{
 @@ -703,47 +707,49 @@ static void pci_set_bar(struct pci_dev *dev, int
 residx)
         if ((res->flags == 0) || (res->flags & PCI_RES_FAIL))
                 return;

 +  if ( res->end <= res->start )
 +               return;
 +
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/3062>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list