summaryrefslogtreecommitdiff
path: root/src/kernel/vfs
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r--src/kernel/vfs/request.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c
index 6159bbf..46c52b8 100644
--- a/src/kernel/vfs/request.c
+++ b/src/kernel/vfs/request.c
@@ -15,6 +15,9 @@ int vfs_request_create(struct vfs_request req_) {
process_current->pending_req = req_;
req = &process_current->pending_req;
+ if (!req->backend)
+ return vfs_request_finish(req, -1);
+
switch (req->backend->type) {
case VFS_BACK_ROOT:
ret = vfs_root_handler(req);