From 52687814ea8f80ea2a0f38af0902e4223a0a76b9 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 9 Feb 2023 14:19:04 -0500 Subject: [PATCH] Kernel: Explicitly copy Plan9FS read errors to registered delegates --- Kernel/FileSystem/Plan9FS/FileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/FileSystem/Plan9FS/FileSystem.cpp b/Kernel/FileSystem/Plan9FS/FileSystem.cpp index 0bed1411fe..19d905698d 100644 --- a/Kernel/FileSystem/Plan9FS/FileSystem.cpp +++ b/Kernel/FileSystem/Plan9FS/FileSystem.cpp @@ -334,7 +334,7 @@ void Plan9FS::thread_main() MutexLocker locker(m_lock); for (auto& it : m_completions) { - it.value->result = result; + it.value->result = Error::copy(result.error()); it.value->completed = true; } m_completions.clear();