diff options
Diffstat (limited to 'Kernel/Net/NE2000NetworkAdapter.cpp')
-rw-r--r-- | Kernel/Net/NE2000NetworkAdapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/NE2000NetworkAdapter.cpp b/Kernel/Net/NE2000NetworkAdapter.cpp index 438d40867d..7695a3a88c 100644 --- a/Kernel/Net/NE2000NetworkAdapter.cpp +++ b/Kernel/Net/NE2000NetworkAdapter.cpp @@ -157,7 +157,7 @@ UNMAP_AFTER_INIT RefPtr<NE2000NetworkAdapter> NE2000NetworkAdapter::try_to_initi if (!ne2k_ids.span().contains_slow(id)) return {}; u8 irq = PCI::get_interrupt_line(address); - return adopt_ref_if_nonnull(new NE2000NetworkAdapter(address, irq)); + return adopt_ref_if_nonnull(new (nothrow) NE2000NetworkAdapter(address, irq)); } UNMAP_AFTER_INIT NE2000NetworkAdapter::NE2000NetworkAdapter(PCI::Address address, u8 irq) |