mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
Kernel: Don't populate the ACPI SysFS directory with a disabled ACPI
This would cause a nullptr dereference on ACPI::Parser::the().
This commit is contained in:
parent
57ba67ed2a
commit
3945e239e1
Notes:
sideshowbarker
2024-07-17 20:39:52 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/3945e239e11 Pull-request: https://github.com/SerenityOS/serenity/pull/11989 Issue: https://github.com/SerenityOS/serenity/issues/11980 Reviewed-by: https://github.com/supercomputer7 ✅
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ UNMAP_AFTER_INIT void FirmwareSysFSDirectory::initialize()
|
|||
void FirmwareSysFSDirectory::create_components()
|
||||
{
|
||||
m_components.append(BIOSSysFSDirectory::must_create(*this));
|
||||
m_components.append(ACPI::ACPISysFSDirectory::must_create(*this));
|
||||
if (ACPI::is_enabled())
|
||||
m_components.append(ACPI::ACPISysFSDirectory::must_create(*this));
|
||||
m_components.append(PowerStateSwitchNode::must_create(*this));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue