mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel/Net: Don't try to enumerate PCI adapters if PCI is disabled
This commit is contained in:
parent
b849e4f907
commit
71de4f7114
Notes:
sideshowbarker
2024-07-17 18:02:20 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/71de4f7114 Pull-request: https://github.com/SerenityOS/serenity/pull/12046
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue