diff options
Diffstat (limited to 'src/kernel/arch/amd64/driver/video.c')
-rw-r--r-- | src/kernel/arch/amd64/driver/video.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/kernel/arch/amd64/driver/video.c b/src/kernel/arch/amd64/driver/video.c index 945d5b4..4cd6b0b 100644 --- a/src/kernel/arch/amd64/driver/video.c +++ b/src/kernel/arch/amd64/driver/video.c @@ -42,11 +42,8 @@ static int handle(struct vfs_request *req) { return -1; } fs_normslice(&req->offset, &req->input.len, fb.size, false); - if (!virt_cpy_from(req->caller->pages, fb.b + req->offset, - req->input.buf, req->input.len)) - { - return -EFAULT; - } + /* parial writes ignored */ + pcpy_from(req->caller, fb.b + req->offset, req->input.buf, req->input.len); return req->input.len; case VFSOP_GETSIZE: |