linux-stable/drivers/pci
Kangjie Lu 6862830562 PCI: xilinx: Check for __get_free_pages() failure
[ Upstream commit 699ca30162 ]

If __get_free_pages() fails, return -ENOMEM to avoid a NULL pointer
dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-15 11:54:58 +02:00
..
dwc PCI: keystone: Prevent ARM32 specific code to be compiled for ARM64 2019-06-15 11:54:55 +02:00
endpoint PCI: endpoint: Use EPC's device in dma_alloc_coherent()/dma_free_coherent() 2019-03-27 14:13:55 +09:00
host PCI: xilinx: Check for __get_free_pages() failure 2019-06-15 11:54:58 +02:00
hotplug PCI: rpadlpar: Fix leaked device_node references in add/remove paths 2019-06-15 11:54:56 +02:00
pcie PCI: Work around Pericom PCIe-to-PCI bridge Retrain Link erratum 2019-05-25 18:25:32 +02:00
switch switchtec: Fix SWITCHTEC_IOCTL_EVENT_IDX_ALL flags overwrite 2019-02-12 19:46:04 +01:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
access.c
ats.c
bus.c
ecam.c
host-bridge.c
hotplug-pci.c
htirq.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
iov.c PCI: Create SR-IOV virtfn/physfn links before attaching driver 2017-12-25 14:26:26 +01:00
irq.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mmap.c
msi.c PCI/MSI: Warn and return error if driver enables MSI/MSI-X twice 2018-11-13 11:14:59 -08:00
of.c
pci-acpi.c PCI / ACPI: Enable wake automatically for power managed bridges 2018-11-13 11:14:58 -08:00
pci-driver.c PCI: Restore config space on runtime resume despite being unbound 2018-05-30 07:52:32 +02:00
pci-label.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci-mid.c x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:18:42 +02:00
pci-stub.c
pci-sysfs.c PCI: Prevent sysfs disable of device while driver is attached 2018-08-03 07:50:29 +02:00
pci.c PCI: Reprogram bridge prefetch registers on resume 2018-10-13 09:27:24 +02:00
pci.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
probe.c PCI: Skip MPS logic for Virtual Functions (VFs) 2018-08-24 13:09:22 +02:00
proc.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
quirks.c PCI: Work around Pericom PCIe-to-PCI bridge Retrain Link erratum 2019-05-25 18:25:32 +02:00
remove.c PCI/ASPM: Fix link_state teardown on device removal 2018-11-13 11:15:07 -08:00
rom.c
search.c
setup-bus.c
setup-irq.c
setup-res.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
slot.c
syscall.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vc.c
vpd.c
xen-pcifront.c