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
+3
View File
@@ -78,8 +78,11 @@ syscallret_t syscall_mount(context_t *context, char *ubacking, char *umountpoint
ret.errno = vfs_lookup(&backingnode, backingrefnode, backing, NULL, 0);
if (ret.errno)
goto cleanup;
VOP_UNLOCK(backingnode);
}
ret.errno = vfs_mount(backingnode, mountpointrefnode, mountpoint, fs, data);
if (ubacking) {
VOP_RELEASE(backingnode);