mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5 0/3] Fix find_first_zero_bit() usage
@ 2017-12-14 13:01 Niklas Cassel
  2017-12-14 13:01 ` [PATCH v5 1/3] PCI: designware-ep: " Niklas Cassel
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Niklas Cassel @ 2017-12-14 13:01 UTC (permalink / raw)
  To: linux-pci; +Cc: kishon, Niklas Cassel, linux-kernel

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(-)

-- 
2.14.2

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-12-15 13:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-14 13:01 [PATCH v5 0/3] Fix find_first_zero_bit() usage Niklas Cassel
2017-12-14 13:01 ` [PATCH v5 1/3] PCI: designware-ep: " Niklas Cassel
2017-12-14 13:01 ` [PATCH v5 2/3] PCI: endpoint: Populate func_no before calling pci_epc_add_epf() Niklas Cassel
2017-12-14 13:13   ` Kishon Vijay Abraham I
2017-12-14 13:01 ` [PATCH v5 3/3] PCI: endpoint: Fix find_first_zero_bit() usage Niklas Cassel
2017-12-14 13:13   ` Kishon Vijay Abraham I
2017-12-15 13:25 ` [PATCH v5 0/3] " Lorenzo Pieralisi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome