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:

committed by
Gerrit - the friendly Code Review server

parent
48af421629
commit
d1d7d597d6
@@ -389,6 +389,8 @@ static inline void free_mem_obj_locked(struct smcinvoke_mem_obj *mem_obj)
|
|||||||
ret, dmabuf_to_free);
|
ret, dmabuf_to_free);
|
||||||
else
|
else
|
||||||
dma_buf_put(dmabuf_to_free);
|
dma_buf_put(dmabuf_to_free);
|
||||||
|
|
||||||
|
mutex_lock(&g_smcinvoke_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void del_mem_regn_obj_locked(struct kref *kref)
|
static void del_mem_regn_obj_locked(struct kref *kref)
|
||||||
|
Reference in New Issue
Block a user