[RTEMS Project] #4279: pci_cfg_read.c: Missing break in switch error spotted by Coverity

RTEMS trac trac at rtems.org
Mon Mar 1 21:25:50 UTC 2021


#4279: pci_cfg_read.c: Missing break in switch error spotted by Coverity
------------------------+--------------------
  Reporter:  Ryan Long  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  6.1
 Component:  lib        |    Version:  6
  Severity:  normal     |   Keywords:
Blocked By:             |   Blocking:
------------------------+--------------------
 CID 1399723: Missing break in switch in pci_read_addressable().

 {{{
  70        switch (type) {
  71        case PCI_RES_IO:
  72                range0 = &bus->dev.resources[BRIDGE_RES_IO];
  73                break;
    CID 1399723 (#1 of 1): Missing break in switch
 (MISSING_BREAK)unterminated_case: The case for value 3 is not terminated
 by a break statement.
  74        case PCI_RES_MEM:
  75                range1 = &bus->dev.resources[BRIDGE_RES_MEM];
    fallthrough: The above case falls through to this one.
  76        default:
  77        case PCI_RES_MEMIO:
 }}}

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


More information about the bugs mailing list