diff options
author | Naoya Horiguchi <[email protected]> | 2013-04-17 15:58:28 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-04-17 16:10:44 -0700 |
commit | 23d9e482136e31c9d287633a6e473daa172767c4 (patch) | |
tree | 8f6d83b7f0ac413ba7f00e931fe3729303dac0e6 /lib/memory-notifier-error-inject.c | |
parent | a2fce9143057f4eb7675a21cca1b6beabe585c8b (diff) |
fs/binfmt_elf.c: fix hugetlb memory check in vma_dump_size()
Documentation/filesystems/proc.txt says about coredump_filter bitmask,
Note bit 0-4 doesn't effect any hugetlb memory. hugetlb memory are only
effected by bit 5-6.
However current code can go into the subsequent flag checks of bit 0-4
for vma(VM_HUGETLB). So this patch inserts 'return' and makes it work
as written in the document.
Signed-off-by: Naoya Horiguchi <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Reviewed-by: HATAYAMA Daisuke <[email protected]>
Acked-by: KOSAKI Motohiro <[email protected]>
Acked-by: David Rientjes <[email protected]>
Cc: <[email protected]> [3.7+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions