diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-08 12:17:35 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-09 00:13:39 +0200 |
commit | fe64d97001af19cdd08afc5674f0755d227af0dc (patch) | |
tree | f24115d36bcf52a63b35a1480b31583dd52c3a4e /Kernel/FileSystem | |
parent | 7ebba7bf3c880e7a98c39ca83f34aa9703a6f922 (diff) | |
download | serenity-fe64d97001af19cdd08afc5674f0755d227af0dc.zip |
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!
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/FileDescription.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |