From 8e79bde2b73d18f31e4dcc1b33c61cd5ec73c83d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 18 Dec 2020 14:10:10 +0100 Subject: Kernel: Move KBufferBuilder to the fallible KBuffer API KBufferBuilder::build() now returns an OwnPtr and can fail. Clients of the API have been updated to handle that situation. --- Kernel/Syscalls/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Syscalls/module.cpp') diff --git a/Kernel/Syscalls/module.cpp b/Kernel/Syscalls/module.cpp index f8d9e0ac9f..bc402e226d 100644 --- a/Kernel/Syscalls/module.cpp +++ b/Kernel/Syscalls/module.cpp @@ -53,7 +53,7 @@ int Process::sys$module_load(Userspace user_path, size_t path_lengt if (payload_or_error.is_error()) return payload_or_error.error(); - auto payload = payload_or_error.value(); + auto& payload = *payload_or_error.value(); auto storage = KBuffer::create_with_size(payload.size()); memcpy(storage.data(), payload.data(), payload.size()); -- cgit v1.2.3