android_kernel_motorola_sm6225/drivers/pci/endpoint
Kishon Vijay Abraham I 9ffaeee7bc PCI: endpoint: Fix for concurrent memory allocation in OB address region
commit 04e046ca57ebed3943422dee10eec9e73aec081e upstream.

pci-epc-mem uses a bitmap to manage the Endpoint outbound (OB) address
region. This address region will be shared by multiple endpoint
functions (in the case of multi function endpoint) and it has to be
protected from concurrent access to avoid updating an inconsistent state.

Use a mutex to protect bitmap updates to prevent the memory
allocation API from returning incorrect addresses.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 10:48:46 +02:00
..
functions PCI: endpoint: functions: Use memcpy_fromio()/memcpy_toio() 2020-01-27 14:50:23 +01:00
Kconfig PCI: Add SPDX GPL-2.0 when no license was specified 2018-01-26 11:45:16 -06:00
Makefile PCI: Add SPDX GPL-2.0 when no license was specified 2018-01-26 11:45:16 -06:00
pci-ep-cfs.c PCI: endpoint: Add MSI-X interfaces 2018-07-19 11:34:23 +01:00
pci-epc-core.c PCI: endpoint: Add MSI set maximum restriction 2018-07-19 11:47:25 +01:00
pci-epc-mem.c PCI: endpoint: Fix for concurrent memory allocation in OB address region 2020-04-17 10:48:46 +02:00
pci-epf-core.c PCI: endpoint: Fix NULL pointer dereference error when CONFIGFS is disabled 2018-07-09 15:19:51 -05:00