summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/driver/ps2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/driver/ps2.c')
-rw-r--r--src/kernel/arch/amd64/driver/ps2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/arch/amd64/driver/ps2.c b/src/kernel/arch/amd64/driver/ps2.c
index 35165d9..9148c98 100644
--- a/src/kernel/arch/amd64/driver/ps2.c
+++ b/src/kernel/arch/amd64/driver/ps2.c
@@ -91,7 +91,7 @@ enum {
};
static void read_backlog(struct vfs_request *req, ring_t *r, struct vfs_request **queue) {
- if (ring_size(r) == 0) {
+ if (ring_used(r) == 0) {
/* nothing to read, join queue */
assert(!req->postqueue_next);
while (*queue) queue = &(*queue)->postqueue_next;