aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers
diff options
context:
space:
mode:
authorMarvin Borner2021-04-09 13:10:03 +0200
committerMarvin Borner2021-04-09 13:10:03 +0200
commiteeb88df1d501ccec4737c18dddb7ca0a1176304f (patch)
treed36b563a27a4a7bdeae662eb5aa44ca082b57e0b /kernel/drivers
parentf8d841fe268ebba43686729af535e035702438f7 (diff)
Added readable/writable checks
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 3e333e8..78b3984 100644
--- a/kernel/drivers/fb.c
+++ b/kernel/drivers/fb.c
@@ -37,7 +37,7 @@ static res fb_ioctl(u32 request, void *arg1, void *arg2, void *arg3, struct devi
if (!info)
return -ENOENT;
- if (!arg1 || !memory_valid(arg1))
+ if (!arg1 || !memory_writable(arg1))
return -EFAULT;
if (fb_owner != 0 && proc_from_pid(fb_owner))