mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
ANDROID: mm: page_pinner: use put_user_page at add_page_for_migration
add_page_for_migration uses follow_page with FOLL_GET. Thus, close the page_pinner false positive by using put_user_page. Bug: 183414571 Signed-off-by: Minchan Kim <minchan@kernel.org> Signed-off-by: Minchan Kim <minchan@google.com> Change-Id: I655b5610bafad86172dcb291573c33176989d94b
This commit is contained in:
parent
67668f721b
commit
ec1dbc10ad
|
|
@ -1654,7 +1654,7 @@ static int add_page_for_migration(struct mm_struct *mm, unsigned long addr,
|
||||||
* isolate_lru_page() or drop the page ref if it was
|
* isolate_lru_page() or drop the page ref if it was
|
||||||
* not isolated.
|
* not isolated.
|
||||||
*/
|
*/
|
||||||
put_page(page);
|
put_user_page(page);
|
||||||
out:
|
out:
|
||||||
mmap_read_unlock(mm);
|
mmap_read_unlock(mm);
|
||||||
return err;
|
return err;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user