Skip to content

Commit

Permalink
[orbis-kernel] fix sys_shm_unlink segv
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Nov 12, 2023
1 parent 56ed80c commit 3a81827
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions orbis-kernel/src/sys/sys_uipc_shm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,10 @@ orbis::SysResult orbis::sys_shm_unlink(Thread *thread, ptr<const char> path) {
}

if (auto shm_unlink = thread->tproc->ops->shm_unlink) {
Ref<File> file;
auto result = shm_unlink(thread, path);
if (result.isError()) {
return result;
}

thread->retval[0] = thread->tproc->fileDescriptors.insert(file);
return {};
}

Expand Down

0 comments on commit 3a81827

Please sign in to comment.