diff options
author | dzwdz | 2021-09-18 12:23:08 +0200 |
---|---|---|
committer | dzwdz | 2021-09-18 12:23:08 +0200 |
commit | a26876079cb155b013461aa525276b9cc8598ccf (patch) | |
tree | 57ebfce84d0a390d106ae733335d8e11b7f9c8e4 /src/kernel/vfs | |
parent | 27cf4b1923629cbf71609311d004914c2508c03a (diff) |
implement NULL mounts
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r-- | src/kernel/vfs/request.c | 3 |
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); |