summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong Ding <yongding@codeaurora.org>2019-01-16 15:39:42 +0800
committerYong Ding <yongding@codeaurora.org>2019-01-16 18:08:10 +0800
commit07ebb0bad998647b56e45318ed2f95bd12ab5f76 (patch)
tree0ec620d76a803e55bbd60db70f84fa1ee1e7eb1a
parenteb84e2653d597ed5daccf3c901d797ac8ef13de5 (diff)
soc: qcom: hab: adapt to the new get_user_pages()
The previous write and force parameters of get_user_pages() are replaced with gup_flags, so HAB needs the relevant change since it uses this API. Change-Id: I8bb8eac3bd9ef0090a29fce28745b9904e087e0c Signed-off-by: Yong Ding <yongding@codeaurora.org>
-rw-r--r--drivers/soc/qcom/hab/hab_mem_linux.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/soc/qcom/hab/hab_mem_linux.c b/drivers/soc/qcom/hab/hab_mem_linux.c
index 670efdea212f..13bfab41f75d 100644
--- a/drivers/soc/qcom/hab/hab_mem_linux.c
+++ b/drivers/soc/qcom/hab/hab_mem_linux.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -361,8 +361,7 @@ int habmem_hyp_grant_user(unsigned long address,
ret = get_user_pages(current, current->mm,
address,
page_count,
- 1,
- 1,
+ FOLL_WRITE | FOLL_FORCE,
pages,
NULL);
}