mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
msm: vidc: Initialize ubwc_stats_lock
Initialize ubwc_stats_lock before use and destroy it before video instance is destroyed. Change-Id: I4ecc02109d9d1c3f8b7cfe28c49b5467866b4d3e Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
This commit is contained in:
parent
c291a1bcb5
commit
71bfe61fda
1 changed files with 3 additions and 0 deletions
|
|
@ -1459,6 +1459,7 @@ void *msm_vidc_open(int core_id, int session_type)
|
|||
mutex_init(&inst->bufq[INPUT_PORT].lock);
|
||||
mutex_init(&inst->lock);
|
||||
mutex_init(&inst->flush_lock);
|
||||
mutex_init(&inst->ubwc_stats_lock);
|
||||
|
||||
INIT_MSM_VIDC_LIST(&inst->scratchbufs);
|
||||
INIT_MSM_VIDC_LIST(&inst->input_crs);
|
||||
|
|
@ -1562,6 +1563,7 @@ fail_bufq_output:
|
|||
vb2_queue_release(&inst->bufq[OUTPUT_PORT].vb2_bufq);
|
||||
fail_bufq_capture:
|
||||
msm_comm_ctrl_deinit(inst);
|
||||
mutex_destroy(&inst->ubwc_stats_lock);
|
||||
mutex_destroy(&inst->sync_lock);
|
||||
mutex_destroy(&inst->bufq[OUTPUT_PORT].lock);
|
||||
mutex_destroy(&inst->bufq[INPUT_PORT].lock);
|
||||
|
|
@ -1707,6 +1709,7 @@ int msm_vidc_destroy(struct msm_vidc_inst *inst)
|
|||
DEINIT_MSM_VIDC_LIST(&inst->window_data);
|
||||
DEINIT_MSM_VIDC_LIST(&inst->timestamps);
|
||||
|
||||
mutex_destroy(&inst->ubwc_stats_lock);
|
||||
mutex_destroy(&inst->sync_lock);
|
||||
mutex_destroy(&inst->bufq[OUTPUT_PORT].lock);
|
||||
mutex_destroy(&inst->bufq[INPUT_PORT].lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue