syscalls: fix more deadlocks and issues

This commit is contained in:
Matheus
2024-08-26 22:40:06 -03:00
parent 42bda0bf92
commit 0236ad663f
3 changed files with 6 additions and 1 deletions
+2
View File
@@ -33,6 +33,8 @@ syscallret_t syscall_chdir(context_t *, char *upath) {
if (ret.errno)
goto cleanup;
VOP_UNLOCK(new);
if (new->type != V_TYPE_DIR) {
ret.errno = ENOTDIR;
goto cleanup;