security: trusted foundations: fix coarse_page_table_array init
authorChris Johnson <cwj@nvidia.com>
Thu, 26 Jan 2012 06:57:37 +0000 (22:57 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:36:04 +0000 (01:36 -0700)
commit7e96415d94684602e603cf9f16edd8c676ba0699
tree634f3151a6a5d38a9c7aa1f2511be1fb3bcdbbdc
parent32c3e8005b686455c28c3f540d02cf4e907f99a1
security: trusted foundations: fix coarse_page_table_array init

On the first allocation of a coarse page array, explicitly set the
ref_count to 1, rather than incrementing (as the allocator used may
not guarantee a zero initted struct).

Bug 928289

Signed-off-by: Chris Johnson <cwj@nvidia.com>
Reviewed-on: http://git-master/r/77514
(cherry picked from commit 7329d105883f8b5db87a45085cf6c47c234c4126)

Change-Id: Ic33eecfaf0620340dd430dfa43793fbf0bd8ad8f
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/79998
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R2049e34b1246fb6ff086cc497ccae1f526102209
security/tf_driver/tf_comm.c