mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:55:08 +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
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
Add a link
Reference in a new issue