Skip to content

Fix wrong failure check on pcie_capability_read_*()

[email protected] linux-kernel-mentees linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI/PME: Fix wrong failure check on pcie_capability_read_*()drivers/pci/pcie/pme.c+2 -20 replies
2/2PCI: pciehp: Fix wrong failure check on pcie_capability_read_*()drivers/pci/hotplug/pciehp_hpc.c+5 -52 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix wrong failure check on pcie_capability_read_*()

From: Bolarinwa Olayemi Saheed <[email protected]>

On failure, pcie_capabiility_read_*() will set the status value, its last parameter to 0 and not ~0.
This bug fix checks for the proper value.

Bolarinwa Olayemi Saheed (2):
PCI/PME: Fix wrong failure check on pcie_capability_read_*()
PCI: pciehp: Fix wrong failure check on pcie_capability_read_*()

 drivers/pci/hotplug/pciehp_hpc.c | 10 +++++-----
 drivers/pci/pcie/pme.c           |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)
Signature · 1 line
2.18.2