linux/drivers/pci/endpoint
Niklas Cassel 35ad61921f PCI: endpoint: 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 this by calling find_first_zero_bit() with size BITS_PER_LONG,
rather than sizeof() and add missing find_first_zero_bit() return
handling.

Fixes: d746799116 ("PCI: endpoint: Introduce configfs entry for configuring EP functions")
Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
2017-12-19 11:05:44 +00:00
..
functions PCI: endpoint: Use correct "end of test" interrupt 2017-09-20 13:56:06 -05:00
Kconfig PCI: endpoint: Make PCI_ENDPOINT depend on HAS_DMA 2017-05-22 16:23:59 -05:00
Makefile PCI: endpoint: functions: Add an EP function to test PCI 2017-04-11 14:18:37 -05:00
pci-ep-cfs.c PCI: endpoint: Fix find_first_zero_bit() usage 2017-12-19 11:05:44 +00:00
pci-epc-core.c PCI: endpoint: Use of_dma_configure() to set initial DMA mask 2017-08-18 10:41:20 -05:00
pci-epc-mem.c PCI: endpoint: Add support for configurable page size 2017-08-29 16:00:37 -05:00
pci-epf-core.c Merge branch 'pci/misc' into next 2017-09-07 13:24:16 -05:00