diff options
author | Marvin Borner | 2021-04-25 16:31:40 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-25 16:31:40 +0200 |
commit | 0fe14a1ff936c38ab9aa7f85219d0c155d276823 (patch) | |
tree | b3e4b1f9000819a564656fabf0496f871c1e6eba /kernel/drivers | |
parent | f2b4acb2fe6a366288b19843e0d2678b8590bdf4 (diff) |
Added range-based memory validator
Diffstat (limited to 'kernel/drivers')
-rw-r--r-- | kernel/drivers/fb.c | 2 |
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)) |