diff options
author | Gonzalo Matias Juarez Tello <[email protected]> | 2021-06-28 19:38:39 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-06-29 10:53:50 -0700 |
commit | 78d9cf6041b968cc881fd22e25e2662d1cec4dba (patch) | |
tree | 537708f69ad1f4228d5f4c2ac6551acb5e485dd0 /tools/perf/scripts/python/sctop.py | |
parent | 3b8db39fad98cbb1d36e079236a446fad710daea (diff) |
mm/mmap.c: logic of find_vma_intersection repeated in __do_munmap
Logic of find_vma_intersection() is repeated in __do_munmap().
Also, prev is assigned a value before checking vma->vm_start >= end which
might end up on a return statement making that assignment useless.
Calling find_vma_intersection() checks that condition and returns NULL if
no vma is found, hence only the !vma check is needed in __do_munmap().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Gonzalo Matias Juarez Tello <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions