[PATCH 3/3] pci_cfg_read.c: Fix Missing break in switch (CID #1399723)
Ryan Long
thisisryanlong at gmail.com
Wed Mar 3 21:26:01 UTC 2021
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];
--
1.8.3.1
More information about the devel
mailing list