[rtems commit] pci_cfg_read.c: Fix Missing break in switch (CID #1399723)

Joel Sherrill joel at rtems.org
Fri Mar 5 20:19:38 UTC 2021


Module:    rtems
Branch:    master
Commit:    0d33d10613a1079f49414b0e2daa820cd59fe68a
Changeset: http://git.rtems.org/rtems/commit/?id=0d33d10613a1079f49414b0e2daa820cd59fe68a

Author:    Ryan Long <ryan.long at oarcorp.com>
Date:      Mon Mar  1 16:33:10 2021 -0500

pci_cfg_read.c: Fix Missing break in switch (CID #1399723)

CID 1399723: Missing break in switch in pci_read_addressable().

Closes #4279

---

 cpukit/libpci/pci_cfg_read.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/libpci/pci_cfg_read.c b/cpukit/libpci/pci_cfg_read.c
index 0783743..3cb6f86 100644
--- a/cpukit/libpci/pci_cfg_read.c
+++ b/cpukit/libpci/pci_cfg_read.c
@@ -73,6 +73,7 @@ static int pci_read_addressable(struct pci_dev *dev, struct pci_res *res)
 		break;
 	case PCI_RES_MEM:
 		range1 = &bus->dev.resources[BRIDGE_RES_MEM];
+		/* Fall through */
 	default:
 	case PCI_RES_MEMIO:
 		range0 = &bus->dev.resources[BRIDGE_RES_MEMIO];



More information about the vc mailing list