diff options
Diffstat (limited to 'Kernel/Storage/RamdiskDevice.cpp')
-rw-r--r-- | Kernel/Storage/RamdiskDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Storage/RamdiskDevice.cpp b/Kernel/Storage/RamdiskDevice.cpp index 0e7d90a1fa..87fd37144e 100644 --- a/Kernel/Storage/RamdiskDevice.cpp +++ b/Kernel/Storage/RamdiskDevice.cpp @@ -14,7 +14,7 @@ namespace Kernel { NonnullRefPtr<RamdiskDevice> RamdiskDevice::create(const RamdiskController& controller, NonnullOwnPtr<Region>&& region, int major, int minor) { - return adopt(*new RamdiskDevice(controller, move(region), major, minor)); + return adopt_ref(*new RamdiskDevice(controller, move(region), major, minor)); } RamdiskDevice::RamdiskDevice(const RamdiskController& controller, NonnullOwnPtr<Region>&& region, int major, int minor) |