Explorar el Código

smcinvoke: take lock again in free_mem_obj_locked

insted of premature unlock return with lock in free_mem_obj_locked
api.

Signed-off-by: Nitin LNU <[email protected]>
Nitin LNU hace 3 años
padre
commit
d1d7d597d6
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      smcinvoke/smcinvoke.c

+ 2 - 0
smcinvoke/smcinvoke.c

@@ -389,6 +389,8 @@ static inline void free_mem_obj_locked(struct smcinvoke_mem_obj *mem_obj)
 				ret, dmabuf_to_free);
 	else
 		dma_buf_put(dmabuf_to_free);
+
+	mutex_lock(&g_smcinvoke_lock);
 }
 
 static void del_mem_regn_obj_locked(struct kref *kref)