diff options
| author | swkhack <[email protected]> | 2019-06-13 22:56:08 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-06-14 03:34:56 +0000 |
| commit | 0874bb49bb21bf24deda853e8bf61b8325e24bcb (patch) | |
| tree | 965fb2ebfe60c6dd4541724ea29c74424e4bede9 /tools/perf/scripts/python | |
| parent | mm: mmu_gather: remove __tlb_reset_range() for force flush (diff) | |
| download | kernel-0874bb49bb21bf24deda853e8bf61b8325e24bcb.tar.gz kernel-0874bb49bb21bf24deda853e8bf61b8325e24bcb.zip | |
mm/mlock.c: change count_mm_mlocked_page_nr return type
On a 64-bit machine the value of "vma->vm_end - vma->vm_start" may be
negative when using 32 bit ints and the "count >> PAGE_SHIFT"'s result
will be wrong. So change the local variable and return value to
unsigned long to fix the problem.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 0cf2f6f6dc60 ("mm: mlock: check against vma for actual mlock() size")
Signed-off-by: swkhack <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
