projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
FROMLIST: android: binder: Move buffer out of area shared with user space
[GitHub/LineageOS/android_kernel_samsung_universal7580.git]
/
mm
/
mmap.c
diff --git
a/mm/mmap.c
b/mm/mmap.c
index 209f3258cd803c1a6f188a6571adfb2dac51404c..fdea42b1857e73d1cd10985b443e49a7c9ac8514 100644
(file)
--- a/
mm/mmap.c
+++ b/
mm/mmap.c
@@
-2158,7
+2158,7
@@
int expand_upwards(struct vm_area_struct *vma, unsigned long address)
/* Guard against exceeding limits of the address space. */
address &= PAGE_MASK;
- if (address >=
TASK_SIZE
)
+ if (address >=
(TASK_SIZE & PAGE_MASK)
)
return -ENOMEM;
address += PAGE_SIZE;