mirror of
https://github.com/drasko/codezero.git
synced 2026-01-18 05:43:16 +01:00
Removed hard-coded area definitions from kernel
This commit is contained in:
@@ -147,10 +147,6 @@ int check_access_task(unsigned long vaddr, unsigned long size,
|
||||
int err;
|
||||
unsigned long start, end, mapsize;
|
||||
|
||||
/* Do not allow ridiculously big sizes */
|
||||
if (size >= USER_AREA_SIZE)
|
||||
return -EINVAL;
|
||||
|
||||
/* Get lower and upper page boundaries */
|
||||
start = page_align(vaddr);
|
||||
end = page_align_up(vaddr + size);
|
||||
|
||||
Reference in New Issue
Block a user