projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
page_poison: play nicely with KASAN
[platform/kernel/linux-rpi.git]
/
mm
/
madvise.c
diff --git
a/mm/madvise.c
b/mm/madvise.c
index
972a9ea
..
71d21df
100644
(file)
--- a/
mm/madvise.c
+++ b/
mm/madvise.c
@@
-96,7
+96,7
@@
static long madvise_behavior(struct vm_area_struct *vma,
new_flags |= VM_DONTDUMP;
break;
case MADV_DODUMP:
- if (new_flags & VM_SPECIAL) {
+ if (
!is_vm_hugetlb_page(vma) &&
new_flags & VM_SPECIAL) {
error = -EINVAL;
goto out;
}