summaryrefslogtreecommitdiff
path: root/src/kernel/vfs
diff options
context:
space:
mode:
authordzwdz2021-09-18 12:23:08 +0200
committerdzwdz2021-09-18 12:23:08 +0200
commita26876079cb155b013461aa525276b9cc8598ccf (patch)
tree57ebfce84d0a390d106ae733335d8e11b7f9c8e4 /src/kernel/vfs
parent27cf4b1923629cbf71609311d004914c2508c03a (diff)
implement NULL mounts
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);