summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}