mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 21:58:20 +00:00
kernel: misc fixes
This commit is contained in:
@@ -46,11 +46,11 @@ syscallret_t syscall_fcntl(context_t *, int fd, int cmd, uint64_t arg) {
|
||||
break;
|
||||
default:
|
||||
ret.errno = EINVAL;
|
||||
break;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
fd_release(file);
|
||||
|
||||
ret.errno = 0;
|
||||
|
||||
cleanup:
|
||||
fd_release(file);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user