[GIT PULL] ACPI fix for v5.11-rc5

From: Rafael J. Wysocki
Date: Thu Jan 21 2021 - 14:31:42 EST


Hi Linus,

Please pull from the tag

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
acpi-5.11-rc5

with top-most commit 78a18fec5258c8df9435399a1ea022d73d3eceb9

ACPI: scan: Make acpi_bus_get_device() clear return pointer on error

on top of commit 19c329f6808995b142b3966301f217c831e7cf31

Linux 5.11-rc4

to receive an ACPI fix for 5.11-rc5.

This modifies a helper function in the ACPI core to match the behavior
expected by its users so as to prevent NULL pointer dereferences and
occasional memory corruption from occurring (Hans de Goede).

Thanks!


---------------

Hans de Goede (1):
ACPI: scan: Make acpi_bus_get_device() clear return pointer on error

---------------

drivers/acpi/scan.c | 2 ++
1 file changed, 2 insertions(+)