소스 검색

msm: camera: eeprom: Release the mutex even though got error

Release the mutex even though got error.

Change-Id: Iaeec418ce7db4623cede6c922869c6f8c69ab595
Signed-off-by: Depeng Shao <[email protected]>
Signed-off-by: Mukund Madhusudan Atre <[email protected]>
Depeng Shao 6 년 전
부모
커밋
3b1e74e59b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/cam_sensor_module/cam_eeprom/cam_eeprom_core.c

+ 1 - 1
drivers/cam_sensor_module/cam_eeprom/cam_eeprom_core.c

@@ -1450,7 +1450,7 @@ int32_t cam_eeprom_driver_cmd(struct cam_eeprom_ctrl_t *e_ctrl, void *arg)
 			&eeprom_cap,
 			sizeof(struct cam_eeprom_query_cap_t))) {
 			CAM_ERR(CAM_EEPROM, "Failed Copy to User");
-			return -EFAULT;
+			rc = -EFAULT;
 			goto release_mutex;
 		}
 		CAM_DBG(CAM_EEPROM, "eeprom_cap: ID: %d", eeprom_cap.slot_info);