Bladeren bron

securemsm-kernel: smcinvoke: removal of double unlock corner case

In mem-map lock api its suppose to enter and exit with holding
lock but there is scenario where we are unlocking in locked API.

Change-Id: I79d8dc350df00d086c9d4d8a58a7b928734be598
Signed-off-by: Nitin LNU <[email protected]>
(cherry picked from commit 657c43f2b767274f940efd66b6d685cf7a0c9884)
Ravi Kumar Bokka 1 jaar geleden
bovenliggende
commit
ded9715963
1 gewijzigde bestanden met toevoegingen van 0 en 1 verwijderingen
  1. 0 1
      smcinvoke/smcinvoke.c

+ 0 - 1
smcinvoke/smcinvoke.c

@@ -1244,7 +1244,6 @@ static int32_t smcinvoke_map_mem_region_locked(struct smcinvoke_mem_obj* mem_obj
 
 		if (!find_mem_obj_locked(mem_obj->mem_region_id,
 				SMCINVOKE_MEM_RGN_OBJ)) {
-			mutex_unlock(&g_smcinvoke_lock);
 			pr_err("Memory object not found\n");
 			return OBJECT_ERROR_BADOBJ;
 		}