summaryrefslogtreecommitdiff
path: root/Kernel/VirtIO/VirtIO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/VirtIO/VirtIO.cpp')
-rw-r--r--Kernel/VirtIO/VirtIO.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/VirtIO/VirtIO.cpp b/Kernel/VirtIO/VirtIO.cpp
index 4ef665f7f4..73e1f99d36 100644
--- a/Kernel/VirtIO/VirtIO.cpp
+++ b/Kernel/VirtIO/VirtIO.cpp
@@ -22,11 +22,11 @@ void VirtIO::detect()
return;
switch (id.device_id) {
case VIRTIO_CONSOLE_PCI_DEVICE_ID: {
- [[maybe_unused]] auto& unused = adopt(*new VirtIOConsole(address)).leak_ref();
+ [[maybe_unused]] auto& unused = adopt_ref(*new VirtIOConsole(address)).leak_ref();
break;
}
case VIRTIO_ENTROPY_PCI_DEVICE_ID: {
- [[maybe_unused]] auto& unused = adopt(*new VirtIORNG(address)).leak_ref();
+ [[maybe_unused]] auto& unused = adopt_ref(*new VirtIORNG(address)).leak_ref();
break;
}
default: