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 <quic_nlakra@quicinc.com>
This commit is contained in:
Nitin LNU
2022-04-07 15:50:44 +05:30
committed by Gerrit - the friendly Code Review server
szülő 48af421629
commit d1d7d597d6

Fájl megtekintése

@@ -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)