Skip to content

Fix find_first_zero_bit() usage

Niklas Cassel linux-pci lkml 4 versions – Applied

Status from this message: Applied to pci/endpoint for v4.16 (updated some commit logs)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 3 repliesApplied
  2. v43 patches 15 repliesSuperseded
  3. v33 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v22 patches3 repliesSuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/3PCI: designware-ep: Fix find_first_zero_bit() usagedrivers/pci/dwc/pcie-designware-ep.c drivers/pci/dwc/pcie-designware.h+32 -100 replies
2/3PCI: endpoint: Populate func_no before calling pci_epc_add_epf()drivers/pci/endpoint/pci-ep-cfs.c+6 -81 reply
3/3PCI: endpoint: Fix find_first_zero_bit() usagedrivers/pci/endpoint/pci-ep-cfs.c+4 -11 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchKishon Vijay Abraham I
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/3] Fix find_first_zero_bit() usage

find_first_zero_bit()'s parameter 'size' is defined in bits, not in bytes.

Calling find_first_zero_bit() with the wrong size unit will lead to insidious bugs.

Fix all uses of find_first_zero_bit() called with
sizeof() as size argument in drivers/pci.

Niklas Cassel (3):
PCI: designware-ep: Fix find_first_zero_bit() usage
PCI: endpoint: Populate func_no before calling pci_epc_add_epf()
PCI: endpoint: Fix find_first_zero_bit() usage

 drivers/pci/dwc/pcie-designware-ep.c | 34 ++++++++++++++++++++++++++--------
 drivers/pci/dwc/pcie-designware.h    |  8 ++++++--
 drivers/pci/endpoint/pci-ep-cfs.c    | 19 ++++++++++---------
 3 files changed, 42 insertions(+), 19 deletions(-)
Signature · 1 line
2.14.2