diff options
author | Liav A <liavalb@gmail.com> | 2022-01-21 16:09:47 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-02 18:41:54 +0100 |
commit | 71de4f7114018e7fb54b8f733ebe1febab1f3c78 (patch) | |
tree | 648f403040ae8df284cf42ee9124e91b35a7eda3 /Kernel/Net | |
parent | b849e4f907b38a1bb2f4f7f10153f733d606cd61 (diff) | |
download | serenity-71de4f7114018e7fb54b8f733ebe1febab1f3c78.zip |
Kernel/Net: Don't try to enumerate PCI adapters if PCI is disabled
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/NetworkingManagement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/NetworkingManagement.cpp b/Kernel/Net/NetworkingManagement.cpp index 42774dbde0..cf83c31dc3 100644 --- a/Kernel/Net/NetworkingManagement.cpp +++ b/Kernel/Net/NetworkingManagement.cpp @@ -111,7 +111,7 @@ UNMAP_AFTER_INIT RefPtr<NetworkAdapter> NetworkingManagement::determine_network_ bool NetworkingManagement::initialize() { - if (!kernel_command_line().is_physical_networking_disabled()) { + if (!kernel_command_line().is_physical_networking_disabled() && !PCI::Access::is_disabled()) { PCI::enumerate([&](PCI::DeviceIdentifier const& device_identifier) { // Note: PCI class 2 is the class of Network devices if (device_identifier.class_code().value() != 0x02) |