linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix find_first_zero_bit() usage
@ 2017-11-17 15:00 Niklas Cassel
  2017-11-17 15:00 ` [PATCH v2 1/2] PCI: designware-ep: " Niklas Cassel
  2017-11-17 15:00 ` [PATCH v2 2/2] PCI: endpoint: " Niklas Cassel
  0 siblings, 2 replies; 6+ messages in thread
From: Niklas Cassel @ 2017-11-17 15:00 UTC (permalink / raw)
  To: linux-pci; +Cc: Niklas Cassel, linux-kernel

From: Niklas Cassel <niklass@axis.com>

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 (2):
  PCI: designware-ep: Fix find_first_zero_bit() usage
  PCI: endpoint: Fix find_first_zero_bit() usage

 drivers/pci/dwc/pcie-designware-ep.c | 6 ++----
 drivers/pci/endpoint/pci-ep-cfs.c    | 3 +--
 2 files changed, 3 insertions(+), 6 deletions(-)

-- 
2.14.2

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

end of thread, other threads:[~2017-11-21 16:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-17 15:00 [PATCH v2 0/2] Fix find_first_zero_bit() usage Niklas Cassel
2017-11-17 15:00 ` [PATCH v2 1/2] PCI: designware-ep: " Niklas Cassel
2017-11-17 18:43   ` Lorenzo Pieralisi
2017-11-21  7:54     ` Kishon Vijay Abraham I
2017-11-21 16:44       ` Lorenzo Pieralisi
2017-11-17 15:00 ` [PATCH v2 2/2] PCI: endpoint: " Niklas Cassel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).