mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 14:08:21 +00:00
vfs: redo locking
This commit is contained in:
@@ -19,7 +19,9 @@ syscallret_t syscall_ioctl(context_t *, int fd, unsigned long request, void *arg
|
||||
}
|
||||
|
||||
int r = 0;
|
||||
VOP_LOCK(file->vnode);
|
||||
ret.errno = VOP_IOCTL(file->vnode, request, arg, &r);
|
||||
VOP_UNLOCK(file->vnode);
|
||||
ret.ret = ret.errno ? -1 : r;
|
||||
|
||||
fd_release(file);
|
||||
|
||||
Reference in New Issue
Block a user