diff options
author | Marvin Borner | 2021-04-03 14:04:23 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-03 14:04:23 +0200 |
commit | 394ee169ea6eb4dd5c8fa778d1c2769e26e52f01 (patch) | |
tree | 70440fb0d9eeb09e1aeec7eba6f2319d34b4918c /kernel/drivers/mouse.c | |
parent | ce98400f8a9ebd4e62e76b9e292b7598d0d66cc0 (diff) |
Enabled SMAP/SMEP protections
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)); } |