summaryrefslogtreecommitdiff
path: root/security/tf_driver
diff options
context:
space:
mode:
Diffstat (limited to 'security/tf_driver')
-rw-r--r--security/tf_driver/tf_comm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tf_driver/tf_comm.c b/security/tf_driver/tf_comm.c
index 8b12f293eabf..16915beb406d 100644
--- a/security/tf_driver/tf_comm.c
+++ b/security/tf_driver/tf_comm.c
@@ -236,7 +236,7 @@ struct tf_coarse_page_table *tf_alloc_coarse_page_table(
*/
coarse_pg_table =
&(array->coarse_page_tables[i]);
- array->ref_count++;
+ array->ref_count = 1;
} else {
/*
* The other elements are added to the free list