mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Kernel: Fix bogus negation of alloc_fd() error in sys$anon_create()
Thanks to Idan for spotting this!
This commit is contained in:
parent
12879184ce
commit
a525d0271c
Notes:
sideshowbarker
2024-07-18 23:51:20 +09:00
Author: https://github.com/awesomekling
Commit: a525d0271c
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ int Process::sys$anon_create(size_t size, int options)
|
|||
|
||||
int new_fd = alloc_fd();
|
||||
if (new_fd < 0)
|
||||
return -new_fd;
|
||||
return new_fd;
|
||||
|
||||
auto vmobject = AnonymousVMObject::create_with_size(size, AllocationStrategy::Reserve);
|
||||
if (!vmobject)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue