]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: bus: Bail out if acpi_kobj registration fails
authorArmin Wolf <W_Armin@gmx.de>
Sun, 18 May 2025 18:51:11 +0000 (20:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:28 +0000 (11:05 +0100)
commit49047b184f2baf58197e2044a6fc95775fc4e1d4
treec5828ae15c87799443413941754effb25a974a45
parent15fa571eedf1858327a381b4fbd014d94adadb75
ACPI: bus: Bail out if acpi_kobj registration fails

[ Upstream commit 94a370fc8def6038dbc02199db9584b0b3690f1a ]

The ACPI sysfs code will fail to initialize if acpi_kobj is NULL,
together with some ACPI drivers.

Follow the other firmware subsystems and bail out if the kobject
cannot be registered.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20250518185111.3560-2-W_Armin@gmx.de
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/bus.c