Skip to content

Commit 969daa3

Browse files
Alex Williamsonbjorn-helgaas
authored andcommitted
PCI: Fix PCI Express Capability accessors for PCI_EXP_FLAGS
PCI_EXP_FLAGS_TYPE is a mask, not an offset. Fix it. Previously, pcie_capability_read_word(..., PCI_EXP_FLAGS, ...) would fail. [bhelgaas: tweak changelog] Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: stable@vger.kernel.org # v3.7+
1 parent 775c739 commit 969daa3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/pci/access.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ static bool pcie_capability_reg_implemented(struct pci_dev *dev, int pos)
515515
return false;
516516

517517
switch (pos) {
518-
case PCI_EXP_FLAGS_TYPE:
518+
case PCI_EXP_FLAGS:
519519
return true;
520520
case PCI_EXP_DEVCAP:
521521
case PCI_EXP_DEVCTL:

0 commit comments

Comments
 (0)