summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index 66f8757..ebdf64e 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -295,7 +295,7 @@ long _sys_fs_respond(hid_t hid, const void __user *buf, long ret, int flags) {
if (!h || h->type != HANDLE_FS_REQ) SYSCALL_RETURN(-EBADF);
VfsReq *req = h->req;
if (req) {
- if (req->output.len > 0 && ret > 0) {
+ if (ret > 0 && req->type == VFSOP_READ) {
// if this vfsop outputs data and ret is positive, it's the length of the buffer
// TODO document
// TODO move to vfsreq_finish