security/tomoyo: convert put_page() to put_user_page*()
diff mbox series

Message ID
State New
Headers show
  • security/tomoyo: convert put_page() to put_user_page*()
Related show

Commit Message Aug. 5, 2019, 2:26 a.m. UTC
From: John Hubbard <>

For pages that were retained via get_user_pages*(), release those pages
via the new put_user_page*() routines, instead of via put_page() or

This is part a tree-wide conversion, as described in commit fc1d8e7cca2d
("mm: introduce put_user_page*(), placeholder versions").

Cc: Kentaro Takeda <>
Cc: Tetsuo Handa <>
Signed-off-by: John Hubbard <>
 security/tomoyo/domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c
index 8526a0a74023..6887beecfb6e 100644
--- a/security/tomoyo/domain.c
+++ b/security/tomoyo/domain.c
@@ -931,7 +931,7 @@  bool tomoyo_dump_page(struct linux_binprm *bprm, unsigned long pos,
 	/* Same with put_arg_page(page) in fs/exec.c */
 #ifdef CONFIG_MMU
-	put_page(page);
+	put_user_page(page);
 	return true;