aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers
diff options
context:
space:
mode:
authorMarvin Borner2021-04-25 16:31:40 +0200
committerMarvin Borner2021-04-25 16:31:40 +0200
commit0fe14a1ff936c38ab9aa7f85219d0c155d276823 (patch)
treeb3e4b1f9000819a564656fabf0496f871c1e6eba /kernel/drivers
parentf2b4acb2fe6a366288b19843e0d2678b8590bdf4 (diff)
Added range-based memory validator
Diffstat (limited to 'kernel/drivers')
-rw-r--r--kernel/drivers/fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/fb.c b/kernel/drivers/fb.c
index fce0c9e..f62c486 100644
--- a/kernel/drivers/fb.c
+++ b/kernel/drivers/fb.c
@@ -34,7 +34,7 @@ static res fb_ioctl(u32 request, void *arg1, void *arg2, void *arg3)
if (!info)
return -ENOENT;
- if (!memory_writable(arg1))
+ if (!memory_writable_range(memory_range(arg1, sizeof(struct vbe_basic))))
return -EFAULT;
if (fb_owner != 0 && proc_from_pid(fb_owner))