Explorar o código

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 %!s(int64=3) %!d(string=hai) anos
pai
achega
fa53fa410e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;