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 <quic_nlakra@quicinc.com>
(cherry picked from commit 657c43f2b767274f940efd66b6d685cf7a0c9884)
This commit is contained in:
Ravi Kumar Bokka
2023-11-27 16:14:07 +05:30
parent 7859e078ed
commit ded9715963

View File

@@ -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;
}