diff options
author | Ajay Nandakumar <anandakumarm@nvidia.com> | 2013-08-13 12:06:57 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:18:35 -0700 |
commit | c5474c28f9fd624be702859081414f302107981a (patch) | |
tree | b23cef81ef1ff30267c433d1cc8326c49508b32d /security | |
parent | 27b50c9dc614e4425a4c99eb52fa9b046fd79bd7 (diff) |
security: tf_driver: fix build errors
Change-Id: I2cc26b954b0a47adc419b15a2c69cf19414648c8
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/260903
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/tf_driver/tf_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/tf_driver/tf_util.c b/security/tf_driver/tf_util.c index b09c2af80447..bc7b19b83f6e 100644 --- a/security/tf_driver/tf_util.c +++ b/security/tf_driver/tf_util.c @@ -858,6 +858,7 @@ int tf_get_current_process_hash(void *hash) int result = 0; void *buffer; struct mm_struct *mm; + unsigned long populate; buffer = internal_kmalloc(PAGE_SIZE, GFP_KERNEL); if (buffer == NULL) { @@ -890,7 +891,7 @@ int tf_get_current_process_hash(void *hash) start = do_mmap_pgoff(mm->exe_file, 0, dentry->d_inode->i_size, PROT_READ | PROT_WRITE | PROT_EXEC, - MAP_PRIVATE, 0); + MAP_PRIVATE, 0, &populate); if (start < 0) { dprintk( KERN_ERR "tf_get_current_process_hash" |