瀏覽代碼

msm: camera: cdm: Fix cdm bl submit function

Fix the possibility of uninitialized variable
getting returned by the cdm_bl_submit function.

CRs-fixed: 3038735
Change-Id: Ib40d83ac2e8c7826197aa73de64f5dbf4996f0a5
Signed-off-by: Jigar Agrawal <[email protected]>
Jigar Agrawal 3 年之前
父節點
當前提交
fa53fa410e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/cam_cdm/cam_cdm_hw_core.c

+ 1 - 1
drivers/cam_cdm/cam_cdm_hw_core.c

@@ -920,7 +920,7 @@ int cam_hw_cdm_submit_bl(struct cam_hw_info *cdm_hw,
 	struct cam_cdm_client *client)
 {
 	unsigned int i;
-	int rc;
+	int rc = 0;
 	struct cam_cdm_bl_request *cdm_cmd = req->data;
 	struct cam_cdm *core = (struct cam_cdm *)cdm_hw->core_info;
 	struct cam_cdm_bl_fifo *bl_fifo = NULL;