From 9a43ead118ec1506848bad9d2bcddfb0fd458552 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 7 Aug 2022 22:07:27 +0200 Subject: kernel: ps2 mouse support --- src/kernel/arch/amd64/driver/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/arch/amd64/driver/serial.c') diff --git a/src/kernel/arch/amd64/driver/serial.c b/src/kernel/arch/amd64/driver/serial.c index d8ee90b..921e140 100644 --- a/src/kernel/arch/amd64/driver/serial.c +++ b/src/kernel/arch/amd64/driver/serial.c @@ -80,8 +80,8 @@ static void accept(struct vfs_request *req) { while (*slot) slot = &(*slot)->postqueue_next; *slot = req; } else if (req->caller) { - if (ret < 0) ret = 0; ret = ring_to_virt((void*)&backlog, req->caller->pages, req->output.buf, req->output.len); + // TODO output.len can overflow here vfsreq_finish_short(req, ret); } else { vfsreq_finish_short(req, -1); -- cgit v1.2.3