summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/driver/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/driver/time.c')
-rw-r--r--src/kernel/arch/amd64/driver/time.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/arch/amd64/driver/time.c b/src/kernel/arch/amd64/driver/time.c
index f47cb74..5ec28b9 100644
--- a/src/kernel/arch/amd64/driver/time.c
+++ b/src/kernel/arch/amd64/driver/time.c
@@ -52,9 +52,8 @@ handle(VfsReq *req)
case VFSOP_GETSIZE:
return 8;
case VFSOP_WRITE:
- if (req->input.len == 8) {
- assert(!req->input.kern);
- if (pcpy_from(req->caller, u.buf, req->input.buf, sizeof u.buf) != sizeof(u.buf)) {
+ if (req->uinlen == 8) {
+ if (pcpy_from(req->caller, u.buf, req->uin, sizeof u.buf) != sizeof(u.buf)) {
return -EGENERIC;
}
h->base = now - u.t;