diff options
Diffstat (limited to 'kernel/drivers/mouse.c')
-rw-r--r-- | kernel/drivers/mouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/mouse.c b/kernel/drivers/mouse.c index eb05d08..0440057 100644 --- a/kernel/drivers/mouse.c +++ b/kernel/drivers/mouse.c @@ -95,7 +95,7 @@ static res mouse_read(void *buf, u32 offset, u32 count, struct device *dev) return -EINVAL; struct event_mouse *e = stack_pop(queue); - memcpy(buf, (u8 *)e + offset, MIN(count, sizeof(*e))); + memcpy_user(buf, (u8 *)e + offset, MIN(count, sizeof(*e))); free(e); return MIN(count, sizeof(*e)); } |