Skip to content
Commit 97955f69 authored by Deming Wang's avatar Deming Wang Committed by Andrew Morton
Browse files

mm/mincore.c: use vma_lookup() instead of find_vma()

Using vma_lookup() verifies the start address is contained in the found
vma.  This results in easier to read the code.

Link: https://lkml.kernel.org/r/20221007030345.5029-1-wangdeming@inspur.com


Signed-off-by: default avatarDeming Wang <wangdeming@inspur.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 6fe7d712
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment