ANDROID: mm: page_pinner: use put_user_page at dump_user_range
dump_user_range uses __get_user_pages_locked with FOLL_GET. Thus, close the page-pinner false positive using put_user_page. Bug: 183414571 Signed-off-by: Minchan Kim <minchan@google.com> Signed-off-by: Minchan Kim <minchan@kernel.org> Change-Id: Ib343a9f61303655b108d60575edae1249ef687df
This commit is contained in:
parent
d14850835c
commit
67668f721b
1 changed files with 1 additions and 1 deletions
|
|
@ -900,7 +900,7 @@ int dump_user_range(struct coredump_params *cprm, unsigned long start,
|
|||
|
||||
stop = !dump_emit(cprm, kaddr, PAGE_SIZE);
|
||||
kunmap(page);
|
||||
put_page(page);
|
||||
put_user_page(page);
|
||||
} else {
|
||||
stop = !dump_skip(cprm, PAGE_SIZE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue