summaryrefslogtreecommitdiff
path: root/Kernel/Graphics/VirtIOGPU
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 17:55:29 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 17:55:29 +0200
commit88d490566ff78fef4e4849d1db9857d3a81fd29e (patch)
treeddfbc047549707dc9f2e4a216a69040ebd564da1 /Kernel/Graphics/VirtIOGPU
parentaf8c74a328b80b09a6e948ab2e9dc4e54ad91cec (diff)
downloadserenity-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.cpp2
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());