diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-11 17:55:29 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-11 17:55:29 +0200 |
commit | 88d490566ff78fef4e4849d1db9857d3a81fd29e (patch) | |
tree | ddfbc047549707dc9f2e4a216a69040ebd564da1 /Kernel/Graphics/VirtIOGPU | |
parent | af8c74a328b80b09a6e948ab2e9dc4e54ad91cec (diff) | |
download | serenity-88d490566ff78fef4e4849d1db9857d3a81fd29e.zip |
Kernel: Rename various *VMObject::create*() => try_create()
try_*() implies that it can fail (and they all return RefPtr with
nullptr signalling failure.)
Diffstat (limited to 'Kernel/Graphics/VirtIOGPU')
-rw-r--r-- | Kernel/Graphics/VirtIOGPU/VirtIOFrameBufferDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Graphics/VirtIOGPU/VirtIOFrameBufferDevice.cpp b/Kernel/Graphics/VirtIOGPU/VirtIOFrameBufferDevice.cpp index 11dd307d15..4b0ab639c3 100644 --- a/Kernel/Graphics/VirtIOGPU/VirtIOFrameBufferDevice.cpp +++ b/Kernel/Graphics/VirtIOGPU/VirtIOFrameBufferDevice.cpp @@ -40,7 +40,7 @@ void VirtIOFrameBufferDevice::create_framebuffer() for (auto i = 0u; i < num_needed_pages; ++i) { pages.append(write_sink_page); } - m_framebuffer_sink_vmobject = AnonymousVMObject::create_with_physical_pages(move(pages)); + m_framebuffer_sink_vmobject = AnonymousVMObject::try_create_with_physical_pages(move(pages)); Locker locker(m_gpu.operation_lock()); m_current_buffer = &buffer_from_index(m_last_set_buffer_index.load()); |