kernel: misc fixes

This commit is contained in:
Matheus
2023-07-25 19:02:59 -03:00
parent 6653b01e23
commit c1aa09eade
4 changed files with 14 additions and 5 deletions
+4 -4
View File
@@ -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;
}