android_kernel_samsung_a7y1.../drivers/pci
Kangjie Lu c70da9dbe5 PCI: rcar: Fix a potential NULL pointer dereference
[ Upstream commit f0d14edd2ba43b995bef4dd5da5ffe0ae19321a1 ]

In case __get_free_pages() fails and returns NULL, fix the return
value to -ENOMEM and release resources to avoid dereferencing a
NULL pointer.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 19:02:25 +02:00
..
host PCI: rcar: Fix a potential NULL pointer dereference 2020-04-06 19:02:25 +02:00
hotplug PCI: rpadlpar: Fix leaked device_node references in add/remove paths 2020-04-06 19:02:23 +02:00
pcie A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
access.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ats.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bus.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
host-bridge.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hotplug-pci.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
htirq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iov.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
of.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-acpi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-driver.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-label.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-stub.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-sysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
probe.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
quirks.c PCI: Mark Atheros AR9462 to avoid bus reset 2020-04-06 18:14:25 +02:00
remove.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rom.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
search.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
setup-bus.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
setup-irq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
setup-res.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
slot.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
syscall.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vpd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen-pcifront.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30