security: tf_driver: fix build errors
Ajay Nandakumar [Tue, 13 Aug 2013 06:36:57 +0000 (11:36 +0530)]
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>

security/tf_driver/tf_util.c

index b09c2af..bc7b19b 100644 (file)
@@ -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"