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:
@@ -1654,7 +1654,7 @@ out_putpage:
|
||||
* isolate_lru_page() or drop the page ref if it was
|
||||
* not isolated.
|
||||
*/
|
||||
put_page(page);
|
||||
put_user_page(page);
|
||||
out:
|
||||
mmap_read_unlock(mm);
|
||||
return err;
|
||||
|
Reference in New Issue
Block a user