From fe64d97001af19cdd08afc5674f0755d227af0dc Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sat, 8 Aug 2020 12:17:35 -0700 Subject: [PATCH] Kernel: Fix my result propagation bug @BenWiederhake spotted In #3001 I was trying to fix result propagation issues, and I actually just introduced another one. Luckily Ben spotted it in the diff after it was in the tree, thanks Ben! --- Kernel/FileSystem/FileDescription.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/FileSystem/FileDescription.cpp b/Kernel/FileSystem/FileDescription.cpp index 662176ddf4..964e682afb 100644 --- a/Kernel/FileSystem/FileDescription.cpp +++ b/Kernel/FileSystem/FileDescription.cpp @@ -197,7 +197,7 @@ ssize_t FileDescription::get_dir_entries(u8* buffer, ssize_t size) }); if (result.is_error()) - result.error(); + return result; stream.snip();