This prepares for upcoming checks in page freeing path.

Signed-off-by: Zi Yan <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: "Arve Hjønnevåg" <[email protected]>
Cc: Todd Kjos <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Carlos Llamas <[email protected]>
Cc: Alice Ryhl <[email protected]>
---
 drivers/android/binder_alloc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c
index 67a068c075c0..5c960513c7bc 100644
--- a/drivers/android/binder_alloc.c
+++ b/drivers/android/binder_alloc.c
@@ -306,6 +306,7 @@ static struct page *binder_page_alloc(struct binder_alloc 
*alloc,
 static void binder_free_page(struct page *page)
 {
        kfree((struct binder_shrinker_mdata *)page_private(page));
+       set_page_private(page, 0);
        __free_page(page);
 }
 
-- 
2.51.0

Reply via email to