diff options
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index de53062..5cec6c4 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -279,9 +279,8 @@ long _sys_fs_respond(hid_t hid, const void __user *buf, long ret, int flags) { VfsReq *req = h->req; if (req) { 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 + /* vfsreq_finish can't copy this data, as it doesn't know where the + * buf argument came from */ ret = min(ret, capped_cast32(req->output.len)); ret = pcpy_bi( req->caller, req->output.buf, |