Browse Source

Merge "msm: camera: ope: free unused memory in ope acquire" into camera-kernel.lnx.4.0

Camera Software Integration 4 years ago
parent
commit
a1aae58315
1 changed files with 4 additions and 0 deletions
  1. 4 0
      drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c

+ 4 - 0
drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c

@@ -2751,6 +2751,10 @@ static int cam_ope_mgr_acquire_hw(void *hw_priv, void *hw_acquire_args)
 	ctx->ctxt_event_cb = args->event_cb;
 	cam_ope_ctx_clk_info_init(ctx);
 	ctx->ctx_state = OPE_CTX_STATE_ACQUIRED;
+	kzfree(cdm_acquire);
+	cdm_acquire = NULL;
+	kzfree(bw_update);
+	bw_update = NULL;
 
 	mutex_unlock(&ctx->ctx_mutex);
 	mutex_unlock(&hw_mgr->hw_mgr_mutex);