mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 05:38:21 +00:00
syscalls: fix more deadlocks and issues
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user