diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-11-27 11:22:25 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-05 22:59:09 +0100 |
commit | 0e6e1092f0af0c69a639105bc16bd9efcf1ad690 (patch) | |
tree | 2025095bbdfa8b65b7278c922375b27bb404a8ce /Userland/Libraries/LibWeb | |
parent | 49adebf0fcf84733bde0989a95fd80668cfa3fec (diff) | |
download | serenity-0e6e1092f0af0c69a639105bc16bd9efcf1ad690.zip |
Kernel: Make ptrace return an error on error
Returning 'result.error().code()' erroneously creates an
ErrorOr<FlatPtr> of the positive errno code, which breaks our
error-returning convention.
This seems to be due to a forgotten minus-sign during the refactoring in
9e51e295cfe2775ff179b10f1cd90368cfb102ad. This latent bug was never
discovered, because currently the error-handling paths are rarely
exercised.
Diffstat (limited to 'Userland/Libraries/LibWeb')
0 files changed, 0 insertions, 0 deletions