diff options
Diffstat (limited to 'Kernel/Devices/Device.h')
-rw-r--r-- | Kernel/Devices/Device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/Device.h b/Kernel/Devices/Device.h index 98e3cfe1fa..1bc751d820 100644 --- a/Kernel/Devices/Device.h +++ b/Kernel/Devices/Device.h @@ -51,7 +51,7 @@ public: template<typename AsyncRequestType, typename... Args> NonnullRefPtr<AsyncRequestType> make_request(Args&&... args) { - auto request = adopt(*new AsyncRequestType(*this, forward<Args>(args)...)); + auto request = adopt_ref(*new AsyncRequestType(*this, forward<Args>(args)...)); ScopedSpinLock lock(m_requests_lock); bool was_empty = m_requests.is_empty(); m_requests.append(request); |